aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/_default/single.html
blob: 62e3ce9f7f90c20c67a020ff93e1c9c551a33d17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{{ define "main" }}
<article>
    <div class="w-100 vh-50 dt bg-center cover bg-gray"
         style="background-image:url({{ .Params.coverimage }})">
        <header class="dt pa5 mw7 center post-header white">
            <h1 class="f1 lh-title">
                {{ .Title }}</h1>

            <div class="f4 tracked">{{ .Date.Format "Mon, Jan 2, 2006" }}</div>
        </header>
    </div>

    <div id="content" class="mw7 center">
        <div class="f4 lh-copy pv4 ph2 black-70">
            {{ .Content }}
        </div>

        <footer class="ph3 pb2 bt bb cf b--black-50">
            {{ with .Params.tags }}
            <div class="fl w-50-ns mb2">
                <h5 class="f5 ttu black-60">Tagged in</br></h5>
                {{ range . }}
                <a class="f5 link br1 ph3 pv2 blue dib hover-bg-black hover-white ba"
                   href="{{ $.Site.LanguagePrefix }}/tags/{{ . | urlize }}/">{{ . }}</a>
                {{ end }}
            </div>
            {{ end }}

            <div class="fl w-50 mb2">
                <h5 class="f5 ttu black-60">Share in Social Networks</br></h5>
                {{ range .Site.Params.sharingOptions }}
                <a class="f4 link br1 ph3 pv2 blue dib hover-bg-light-blue hover-white ba" target="new" href="{{ printf .url $.Permalink }}">
                    <i class="fab {{ .icon }}"></i>
                </a>
                {{ end }}
            </div>
        </footer>

    </div>
    {{ if not (eq .Params.comments false) }}
        <div class="mw7 center mv4">
            {{ template "_internal/disqus.html" . }}
        </div>
    {{ end }}
</article>
{{ end }}