17 lines
340 B
HTML
17 lines
340 B
HTML
|
{{ define "main" }}
|
||
|
<main>
|
||
|
{{ if or .Title .Content }}
|
||
|
<div>
|
||
|
{{ with .Title }}<h1>{{ . }}</h1>{{ end }}
|
||
|
{{ with .Content }}<div>{{ . }}</div>{{ end }}
|
||
|
</div>
|
||
|
{{ end }}
|
||
|
|
||
|
{{ range .Paginator.Pages }}
|
||
|
{{ .Render "summary" }}
|
||
|
{{ end }}
|
||
|
{{ partial "pagination.html" . }}
|
||
|
</main>
|
||
|
{{ partial "sidebar.html" . }}
|
||
|
{{ end }}
|