Add archive

This commit is contained in:
Valentin Brandl
2017-04-07 16:50:21 +02:00
parent 7518d84366
commit e8690efc6c
3 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,25 @@
{{ define "title" -}}
{{ .Params.name }} | {{ .Site.Title }}
{{- end }}
{{ define "header" }}
{{ partial "menu" . }}
{{ end }}
{{ define "main" }}
<header>
<h1>{{ .Title }}</h1>
</header>
{{ range (where .Site.RegularPages "Section" "post").GroupByDate "2006" }}
<h2>{{ .Key }}</h2>
<ul>
{{ range .Pages }}
<li>
<span>{{ .Date.Format "02 Jan" }}</span>
<a href="{{ .Permalink }}" id="{{ .UniqueID }}" alt="{{ .Title }}">{{ .Title | markdownify }}</a>
</li>
{{ end }}
</ul>
{{ end }}
{{ end }}
{{ define "footer" }}
{{ partial "powered-by" . }}
{{ end }}