portfoligor/layouts/_default/list.html

23 lines
616 B
HTML
Raw Normal View History

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