blog/layouts/index.html

20 lines
477 B
HTML
Raw Normal View History

2021-05-11 10:01:24 +02:00
{{ define "main" }}
<main>
<header>
<h1>{{.Title}}</h1>
{{ with .Params.subtitle }}
<span>{{.}}</span>
{{ end }}
</header>
<div>
<!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md -->
{{.Content}}
</div>
<div>
{{ range first 10 .Site.RegularPages }}
{{ .Render "summary"}}
{{ end }}
</div>
</main>
{{ end }}