basic-theme/layouts/_default/list.html

15 lines
401 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 .Pages }}
{{ .Render "summary"}}
{{ end }}
{{ end }}