2019-07-30 21:32:26 +00:00
|
|
|
{{ define "main" }}
|
2016-10-14 20:41:10 +00:00
|
|
|
<main>
|
2019-07-30 21:32:26 +00:00
|
|
|
{{ if or .Title .Content }}
|
|
|
|
<div>
|
|
|
|
{{ with .Title }}<h1>{{ . }}</h1>{{ end }}
|
|
|
|
{{ with .Content }}<div>{{ . }}</div>{{ end }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ range .Paginator.Pages }}
|
|
|
|
{{ .Render "summary" }}
|
2016-10-14 20:41:10 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ partial "pagination.html" . }}
|
|
|
|
</main>
|
|
|
|
{{ partial "sidebar.html" . }}
|
2019-07-30 21:32:26 +00:00
|
|
|
{{ end }}
|