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

49 lines
1.1 KiB
Cheetah
Raw Normal View History

2023-07-09 17:51:49 +00:00
{{define "title"}}Index{{end}}
2024-02-24 20:21:48 +00:00
{{define "head"}}{{end}}
2023-07-09 17:51:49 +00:00
{{define "main"}}
2023-07-13 19:20:00 +00:00
<div class="h-feed">
{{ range .Entries }}
<div class="h-entry">
<hgroup>
<h3>
2024-02-24 20:21:48 +00:00
<a class="u-url" href="/posts/{{ .ID }}/">
2023-07-13 19:20:00 +00:00
{{if .Title}}
{{ .Title }}
{{else}}
#
{{end}}
</a>
</h3>
<small style="font-size: 0.75em;">
2023-08-11 15:37:22 +00:00
{{ if .PublishedAt }}
<time class="dt-published" datetime="{{.PublishedAt.Format "2006-01-02T15:04:05" }}">
{{.PublishedAt.Format "2006-01-02" }}
</time>
{{ end }}
2023-07-13 19:20:00 +00:00
</small>
</hgroup>
2023-07-09 17:51:49 +00:00
{{ .Content }}
</div>
<hr>
{{ end }}
2023-07-13 19:20:00 +00:00
</div>
2023-07-09 17:51:49 +00:00
2023-07-13 19:20:00 +00:00
<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>
2023-07-09 17:51:49 +00:00
{{end}}