aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/index.html
blob: 7516cf140979cb5ec3fe49c3f6a80a6442818151 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{{ 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="microblog">
  <h2>Microblog</h2>
  {{ range (where .Site.RegularPages "Type" "micro") }}
  <article class="list-item">
      {{ .Summary }}
      {{ if .Truncated }}
      <a href="{{ .RelPermalink }}">Read more</a>
      {{ end }}
  </article>
  {{ end }}
</div>
<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" . }}