alex.racine/themes/portfoliGor/layouts/_default/section.html

28 lines
815 B
HTML
Raw Permalink Normal View History

{{ define "main" }}
<header>
<h2>{{.Title}}</h2>
</header>
<!-- "{{.Content}}" pulls from the markdown content of the corresponding
_index.md -->
<article class="content">
<header>
{{.Content }}
</header>
<article 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 }}
</article>
</article>
{{ end }}