basic-theme/layouts/_default/single.html

15 lines
397 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>{{ .Title }}</h1>
{{ end }}
{{ define "content" }}
<article>
{{ .Content }}
</article>
{{ end }}
{{ define "content-footer" }}
{{ partial "prev-next-page.html" . }}
{{ end }}