semantic-indieweb/layouts/_default/list.html

20 lines
587 B
HTML

{{/* 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>
{{ 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 }}