layouts/index.html (view raw)
1
2
3{{ define "main" }}
4<main>
5 <article>
6 <header>
7 <h1>{{.Title}}</h1>
8 </header>
9 <!-- "{{.Content}}" pulls from the markdown content of the corresponding _index.md -->
10 {{.Content}}
11 </article>
12 <!--
13 <ul>
14 Ranges through content/posts/*.md
15 {{ range ( where .Site.RegularPages "Type" "posts" ) }}
16 <li>
17 <a href="{{.Permalink}}">{{.Date.Format "2006-01-02"}} | {{.Title}}</a>
18 </li>
19 {{ end }}
20 </ul>
21 -->
22</main>
23{{ end }}