You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
764 B
36 lines
764 B
{{ define "body" }}
|
|
|
|
<ul id="posts-list">
|
|
|
|
{{ range .Posts }}
|
|
<li>
|
|
<h2>
|
|
<a href="posts/{{ .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>
|
|
|
|
{{ if or (ge .PrevPage 0) (ge .NextPage 0) }}
|
|
<div id="page-turner">
|
|
|
|
{{ if ge .PrevPage 0 }}
|
|
<a style="float: left;" href="?p={{ .PrevPage}}">Newer</a>
|
|
{{ end }}
|
|
|
|
{{ if ge .NextPage 0 }}
|
|
<a style="float:right;" href="?p={{ .NextPage}}">Older</a>
|
|
{{ end }}
|
|
|
|
</div>
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ template "base.html" . }}
|
|
|