2019-11-19 04:39:28 +00:00
|
|
|
{{ define "main" }}
|
|
|
|
<main>
|
|
|
|
<header class="homepage-header">
|
|
|
|
<h1>{{.Title}}</h1>
|
|
|
|
{{ with .Site.Params.Subtitle }}
|
|
|
|
<span class="subtitle">{{.}}</span>
|
|
|
|
{{ end }}
|
|
|
|
</header>
|
|
|
|
<div class="homepage-content">
|
|
|
|
<!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md -->
|
|
|
|
{{.Content}}
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<!-- Note that .Pages is the same as .Site.RegularPages on the homepage template. -->
|
|
|
|
{{ range first 10 .Pages }}
|
|
|
|
{{ .Render "summary"}}
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
{{ end }}
|