mirror of
https://codeberg.org/mclemens/amberterm.git
synced 2024-11-19 12:16:03 -05:00
27 lines
615 B
HTML
27 lines
615 B
HTML
|
{{ define "main" }}
|
||
|
<main>
|
||
|
{{ $listtitle := .Title }}
|
||
|
{{ if or .Title .Content }}
|
||
|
<div>
|
||
|
{{ with .Title }}<h1>{{ . }}</h1>{{ end }}
|
||
|
{{ with .Content }}<div>{{ . }}</div>{{ end }}
|
||
|
</div>
|
||
|
{{ end }}
|
||
|
|
||
|
<ul>
|
||
|
{{ range .Paginator.Pages }}
|
||
|
<li>
|
||
|
<div class="post-title">
|
||
|
{{ if eq $listtitle "Posts" }}
|
||
|
{{ .Date.Format "2006-01-02" }} <a href="{{ .RelPermalink }}">{{.Title }}</a>
|
||
|
{{ else }}
|
||
|
<a href="{{ .RelPermalink }}">{{.Title }}</a>
|
||
|
{{ end }}
|
||
|
</div>
|
||
|
</li>
|
||
|
{{ end }}
|
||
|
</ul>
|
||
|
{{ partial "pagination.html" . }}
|
||
|
</main>
|
||
|
{{ end }}
|