2019-11-19 04:39:28 +00:00
|
|
|
{{/* 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 "main" }}
|
|
|
|
<main>
|
|
|
|
<div>
|
|
|
|
<h1 id="title">{{ .Title }}</h1>
|
2019-11-20 00:16:20 +00:00
|
|
|
<div class="list-content">
|
|
|
|
{{ .Content }}
|
|
|
|
</div>
|
|
|
|
<div class="list-summary">
|
|
|
|
{{ range .Pages }}
|
|
|
|
{{ .Render "summary"}}
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
2019-11-19 04:39:28 +00:00
|
|
|
</div>
|
|
|
|
</main>
|
2019-11-20 00:16:20 +00:00
|
|
|
{{ end }}
|