summaryrefslogtreecommitdiff
path: root/layouts/single.html
blob: e9d83dac8944d2d82a2e1af53738d6a8563706fd (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
{{- define "main" }}
<article class="post">
    <header class="post__header">
        <h1 class="post__headline">
            {{ .Title }}
        </h1>
        {{- with .Date }}
        <time datetime="{{ .Format "2006-01-02T15:04:05Z07:00" }}" class="post__publish-date">
            {{ . | time.Format ":date_medium" }}
        </time>
        {{- end }}
    </header>

    <div class="post__content">
        {{ .Content }}
    </div>

    {{- if ne .Params.excludeFromLists true }}
    <footer class="post__footer">
        {{ partial "single/tags" . }}
        {{ partial "single/next-prev" . }}
    </footer>
    {{- end }}
</article>
{{- end }}