portfoligor/layouts/_default/list.html

19 lines
512 B
HTML

{{ define "main" }}
<header>
<h1>{{.Title}}</h1>
</header>
<!-- "{{.Content}}" pulls from the markdown content of the corresponding _index.md -->
{{.Content}}
<article>
<!-- Ranges through content/posts/*.md -->
{{ range .Pages }}
<article>
<a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> &mdash;
{{ if isset .Params "publishdate" }}
{{.PublishDate.Format "2006-01-02"}}
{{ end }}
</article>
{{ end }}
</article>
{{ end }}