layouts/_default/list.html (view raw)
1{{ define "main" }}
2<main>
3 {{/*
4 <article>
5 <header>
6 <h1>{{ .Title }}</h1>
7 </header>
8 <!-- "{{ .Content }}" pulls from the Markdown content of the corresponding _index.md -->
9 {{ .Content }}
10 </article>
11 */}}
12 <ul class="links-list">
13 <!-- Ranges through content/posts/*.md -->
14 {{ range .Pages }}
15 <li>
16 <a href="{{ .RelPermalink }}"
17 >{{ .Date | time.Format "Jan 2006" }} - {{ .LinkTitle }}</a
18 >
19 </li>
20 {{ end }}
21 </ul>
22</main>
23{{ end }}