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

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

        <h1 class="page-title">{{ .Title | title }}</h1>

        <ul class="recent-posts">
            {{ range .RegularPages.ByDate.Reverse }}
            <li>
                <span class="recent-post-left">
                    <a href="{{ .Permalink }}">{{ .Title }}</a>
                    {{ with .Params.tags }}{{ range . }}
                    <a href="{{ "/tags/" | relURL }}{{ . | urlize }}/" class="post-tag">{{ . }}</a>
                    {{ end }}{{ end }}
                </span>
                {{ with .Params.date }}
                <span class="recent-post-date">{{ . | time | dateFormat "2006-01-02" }}</span>
                {{ end }}
            </li>
            {{ end }}
        </ul>
    </section>
</main>

{{ partial "footer.html" . }}