16 lines
360 B
HTML
16 lines
360 B
HTML
{{ define "main" }}
|
|
<div id="posts">
|
|
{{ $listtitle := .Title }}
|
|
{{ if or .Title .Content }}
|
|
<div>
|
|
{{ with .Title }}<h1>{{ . }}</h1>{{ end }}
|
|
{{ with .Content }}<div>{{ . }}</div>{{ end }}
|
|
</div>
|
|
{{ end }}
|
|
|
|
{{ range .Paginator.Pages }}
|
|
{{ partial "summary.html" . }}
|
|
{{ end }}
|
|
{{ partial "pagination.html" . }}
|
|
</div>
|
|
{{ end }} |