blog/layouts/index.html

13 lines
297 B
HTML

{{ define "main" }} {{ .Content }} {{ with .Site.RegularPages }}
<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 }}