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}}
|
2020-01-15 17:42:04 +01:00
|
|
|
<article class="posts-list">
|
2019-09-01 08:32:49 +02:00
|
|
|
<!-- Ranges through content/posts/*.md -->
|
2020-05-24 12:54:19 +02:00
|
|
|
{{ range .Pages.ByPublishDate.Reverse }}
|
2020-01-15 17:42:04 +01:00
|
|
|
<article class="posts-list">
|
|
|
|
<article>
|
|
|
|
<a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a>
|
|
|
|
</article>
|
|
|
|
<footer>
|
2019-09-01 08:32:49 +02:00
|
|
|
{{ if isset .Params "publishdate" }}
|
|
|
|
{{.PublishDate.Format "2006-01-02"}}
|
|
|
|
{{ end }}
|
2020-01-15 17:42:04 +01:00
|
|
|
</footer>
|
2019-09-01 08:32:49 +02:00
|
|
|
</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 }}
|