owl-blogs/render/templates/views/draft_list.tmpl

44 lines
824 B
Cheetah
Raw Permalink Normal View History

2023-08-05 11:35:56 +00:00
{{define "title"}}Index{{end}}
{{define "main"}}
<a href="/admin">&larr; Back</a>
<br>
<hr>
<div class="h-feed">
{{ range .Entries }}
<div class="h-entry">
<hgroup>
<h3>
<a class="u-url" href="/posts/{{ .ID }}">
{{if .Title}}
{{ .Title }}
{{else}}
#
{{end}}
</a>
</h3>
</hgroup>
</div>
<hr>
{{ end }}
</div>
<hr>
<nav class="row">
{{ if not .FirstPage }}
<div>
<a href="?page={{ .PrevPage }}">Prev</a>
</div>
{{ end }}
<div>Page {{.Page}}</div>
{{ if not .LastPage }}
<div>
<a href="?page={{ .NextPage }}">Next</a>
</div>
{{ end }}
</nav>
{{end}}