blob: 240df92c4b0459eab0aa497dc81aa2c0b27e6e7b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{{ define "body" }}
<ul id="posts-list">
{{ range .Posts }}
<li>
<h2>
<a href="{{ .HTTPPath }}">{{ .Title }}</a>
</h2>
<span>{{ .PublishedAt.Format "2006-01-02" }}</span>
{{ if not .LastUpdatedAt.IsZero }}
<span>(Updated {{ .LastUpdatedAt.Format "2006-01-02" }})</span>
{{ end }}
<p>{{ .Description }}</p>
</li>
{{ end }}
</ul>
{{ end }}
{{ template "base.html" . }}
|