20 lines
613 B
HTML
20 lines
613 B
HTML
{{- define "content-header" -}}
|
|
<hgroup>
|
|
<h1>{{.Title}}</h1>
|
|
{{- if .Params.Subtitle }}
|
|
<h2 class="subtitle">{{.Params.Subtitle}}</h2>
|
|
{{- else if .Site.Params.Subtitle }}
|
|
<h2 class="subtitle">{{.Site.Params.Subtitle}}</h2>
|
|
{{- end }}
|
|
</hgroup>
|
|
{{ end }}
|
|
{{ define "content" }}
|
|
<article class="homepage-content">
|
|
<!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md -->
|
|
{{.Content}}
|
|
</article>
|
|
<!-- Note that .Pages is the same as .Site.RegularPages on the homepage template. -->
|
|
{{ range first 10 .Pages }}
|
|
{{ .Render "summary"}}
|
|
{{ end }}
|
|
{{ end }} |