blob: 6fda4060a360d5637f5ceb2b827782ba8434e00d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
{{ define "main" }}
{{ .Content }}
<section>
<h2>Recent posts</h2>
{{ range first 5 (where site.RegularPages "Section" "blog").ByDate.Reverse }}
<article>
<time datetime="{{ .Date.Format " 2006-01-02" }}">
{{ .Date.Format "02 Jan, 2006" }}
</time>
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</article>
{{ end }}
<br>
<a href="/blog/">View all posts →</a>
</section>
{{ end }}
|