aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/index.html
blob: 4f74872b8fec78ecf4bbfe9a802f11c29db24fac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{{ partial "head" . }}

<header>
    <a href="/"><img id="logo" src="{{ .Site.Params.logo }}" /></a>
    <h1>{{ .Title }}</h1>
</header>
<main>
<p>{{ .Site.Params.intro }}</p>
<div class="archive">
  <h2>Archive</h2>
  {{ range (where .Site.RegularPages "Type" "post").GroupByDate "2006" }}
  <h3 class="archive-title">{{ .Key }}</h3>
  {{ range .Pages }}
  <article class="list-item">
    <a href="{{ .Permalink }}" class="list-item-link">{{ .Title }}</a>
    <span class="list-item-date">{{ .Date.Format "January 2, 2006" }}</span>
  </article>
  {{ end }}
  {{ end }}
</div> 
</main>
{{ partial "footer" . }}