21 lines
464 B
HTML
21 lines
464 B
HTML
{{ define "main" }}
|
|
<main>
|
|
{{ 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">
|
|
{{ .Date.Format "2006-01-02" }} <a href="{{ .RelPermalink }}">{{.Title }}</a>
|
|
</div>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ partial "pagination.html" . }}
|
|
</main>
|
|
{{ end }}
|