aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/index.html
blob: 17c1d26884bbb104aeb11d8a6084ccee5e74c24e (plain)
1
2
3
4
5
6
7
8
9
10
11
{{ define "main" }}

<h1 class="f1">{{.Title}}</h1>

<h2 class="f2">Posts</h2>
<!-- Note that .Data.Pages is the equivalent of .Site.Pages on the homepage template. -->

  {{ range where .Data.Pages "Section" "post" }}
    {{ .Render "summary" }}
  {{ end }}
{{ end }}