portfoligor/layouts/_default/section.html

28 lines
793 B
HTML
Raw Permalink Normal View History

{{ define "main" }}
<header>
2021-10-29 22:34:24 +02:00
<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 }}