hugo-rottenwheel/layouts/index.html

11 lines
241 B
HTML
Raw Normal View History

{{ define "main" }}
<h2>Latest Posts</h2>
<ul>
{{ range where .Site.RegularPages "Section" "posts" }}
<li>
<a href="{{ .Permalink }}">{{ .Title }}</a> - {{ .Date.Format "2006-01-02" }}
</li>
{{ end }}
</ul>
{{ end }}