summaryrefslogtreecommitdiff
path: root/layouts/_default/single.html
blob: e1272ceadf29e3545714349be5a74c2d8146b93e (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
{{ partial "header.html" . -}}

<article class="post-body">
    <a class="back-link" href="/">← voltar</a>

    <header class="post-header">
        <h1>{{ .Title }}</h1>
        {{ with .Params.excerpt }}
        <p class="post-excerpt-lead">{{ . }}</p>
        {{ end }}
        {{ with .Date }}{{ if not .IsZero }}
        <p class="post-date">{{ .Format "02/01/2006" }}</p>
        {{ end }}{{ end }}
        {{ with .Params.tags }}
        <div class="post-tags-bar">
            {{ range . }}
            <a href="{{ "/tags/" | relURL }}{{ . | urlize }}/" class="post-tag">{{ . }}</a>
            {{ end }}
        </div>
        {{ end }}
    </header>

    <div class="content">
        {{ .Content }}
    </div>
</article>

{{ partial "footer.html" . }}