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>
|
|
|
|
{{ range .Pages }}
|
|
|
|
{{ .Render "summary"}}
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
{{ end }}
|