etch/layouts/partials/posts.html
2020-05-15 17:47:34 -07:00

11 lines
288 B
HTML

<h3>Posts</h3>
<ul id="posts">
{{ range where site.RegularPages "Type" "in" site.Params.mainSections }}
<li>
<a href="{{ .Permalink }}">
{{- .Title -}}
<small><time>{{ .Date.Format "Jan 2, 2006" }}</time></small>
</a>
</li>
{{ end }}
</ul>