basic-theme/layouts/_default/list.html

20 lines
587 B
HTML
Raw Permalink Normal View History

{{/* This will override the default value set in baseof.html; i.e., "{{.Site.Title}}" in the original example */}}
{{ define "title" }}
{{ .Title }} – {{ .Site.Title }}
{{ end }}
{{ define "content-header" }}
<h1 id="title">{{ .Title }}</h1>
2019-11-20 00:16:20 +00:00
{{ end }}
{{ define "content" }}
<header class="list-content">
{{ .Content }}
</header>
{{ range $index, $page := (.Paginate (where .Pages ".Params.hidden" "!=" "true")).Pages }}
{{ if ne $index 0 }}
{{ end }}
{{ .Render "summary" }}
{{ end }}
{{ end }}
{{ define "content-footer" }}
{{ partial "paginator.html" .Paginator }}
{{ end }}