28 lines
793 B
HTML
28 lines
793 B
HTML
{{ define "main" }}
|
|
<header>
|
|
<h2>{{.Title}}</h2>
|
|
</header>
|
|
<!-- "{{.Content}}" pulls from the markdown content of the corresponding
|
|
_index.md -->
|
|
<main>
|
|
<header>
|
|
{{.Content }}
|
|
</header>
|
|
<section class="posts-list">
|
|
<!--
|
|
Ranges pages by the publish date, in reverse order, to display the
|
|
post titles of the section from most recent to older. It adds to
|
|
the title the date and categories (from lists-footer.html)
|
|
-->
|
|
{{ range .Pages.ByPublishDate.Reverse }}
|
|
<article>
|
|
<a href="{{ .Permalink }}">
|
|
{{.Title}}
|
|
</a>
|
|
{{ partial "lists-footer.html" . }}
|
|
</article>
|
|
{{ end }}
|
|
</section>
|
|
</main>
|
|
{{ end }}
|