2019-07-30 12:56:41 +02:00
|
|
|
{{ define "main" }}
|
2019-09-01 08:32:49 +02:00
|
|
|
<header>
|
|
|
|
<h1>{{.Title}}</h1>
|
|
|
|
</header>
|
|
|
|
<!-- "{{.Content}}" pulls from the markdown content of the corresponding _index.md -->
|
|
|
|
{{.Content}}
|
|
|
|
<article>
|
|
|
|
<!-- Ranges through content/posts/*.md -->
|
2019-07-30 12:56:41 +02:00
|
|
|
{{ range .Pages }}
|
2019-09-01 08:32:49 +02:00
|
|
|
<article>
|
|
|
|
<a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> —
|
|
|
|
{{ if isset .Params "publishdate" }}
|
|
|
|
{{.PublishDate.Format "2006-01-02"}}
|
|
|
|
{{ end }}
|
|
|
|
</article>
|
2019-07-30 12:56:41 +02:00
|
|
|
{{ end }}
|
2019-09-01 08:32:49 +02:00
|
|
|
</article>
|
2019-07-30 12:56:41 +02:00
|
|
|
{{ end }}
|