23 lines
638 B
HTML
23 lines
638 B
HTML
{{ define "main" }}
|
|
<header>
|
|
<h1>{{.Title}}</h1>
|
|
</header>
|
|
<!-- "{{.Content}}" pulls from the markdown content of the corresponding _index.md -->
|
|
{{.Content}}
|
|
<article class="posts-list">
|
|
<!-- Ranges through content/posts/*.md -->
|
|
{{ range .Pages.ByPublishDate.Reverse }}
|
|
<article class="posts-list">
|
|
<article>
|
|
<a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a>
|
|
</article>
|
|
<footer>
|
|
{{ if isset .Params "publishdate" }}
|
|
{{.PublishDate.Format "2006-01-02"}}
|
|
{{ end }}
|
|
</footer>
|
|
</article>
|
|
{{ end }}
|
|
</article>
|
|
{{ end }}
|