blog/layouts/index.html

14 lines
330 B
HTML

{{ define "main" }} {{ .Content }} {{ with (where site.RegularPages
"Params.hidden" "ne" true) }}
<h2>Posts</h2>
<ul>
{{ range . }}
<li>
<a href="{{ .Permalink }}">{{ .Title }}</a>
<time datetime="{{ .Lastmod }}">
{{ .Lastmod.Format "January 2, 2006" }}
</time>
</li>
{{ end }}
</ul>
{{ end }} {{ end }}