2023-07-19 18:45:42 +00:00
|
|
|
{{define "title"}}Index{{end}}
|
2024-02-24 20:21:48 +00:00
|
|
|
{{define "head"}}{{end}}
|
2023-07-19 18:45:42 +00:00
|
|
|
|
|
|
|
{{define "main"}}
|
|
|
|
|
|
|
|
<div class="h-feed">
|
|
|
|
{{ range .Entries }}
|
|
|
|
<div class="h-entry">
|
2024-05-09 12:15:19 +00:00
|
|
|
<h1 class="entry-title">
|
|
|
|
<a class="u-url" href="/posts/{{ .ID }}/">
|
|
|
|
{{if .Title}}
|
|
|
|
{{ .Title }}
|
|
|
|
{{else}}
|
|
|
|
#
|
|
|
|
{{end}}
|
|
|
|
</a>
|
|
|
|
</h1>
|
|
|
|
<div class="entry-meta">
|
|
|
|
Published:
|
|
|
|
{{ if .PublishedAt }}
|
|
|
|
<time class="dt-published" datetime="{{.PublishedAt.Format "2006-01-02T15:04:05" }}">
|
|
|
|
{{.PublishedAt.Format "2006-01-02" }}
|
|
|
|
</time>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
2023-07-19 18:45:42 +00:00
|
|
|
{{ .Content }}
|
|
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<nav class="row">
|
|
|
|
{{ if not .FirstPage }}
|
|
|
|
<div>
|
|
|
|
<a href="/lists/{{.List.Id}}/?page={{ .PrevPage }}">Prev</a>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
<div>Page {{.Page}}</div>
|
|
|
|
|
|
|
|
{{ if not .LastPage }}
|
|
|
|
<div>
|
|
|
|
<a href="/lists/{{.List.Id}}/?page={{ .NextPage }}">Next</a>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</nav>
|
|
|
|
{{end}}
|