blob: 4d749900f100edd0d641a299a47033dcfac3dd7c (
plain)
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
|
{{ define "main" }}
<article lang="{{ default "en" .Params.lang }}">
<header class="document-header">
<h1>{{ .Title }}</h1>
{{ partial "document-view.html" . }}
</header>
{{ .Content }}
{{- $sections := sort .Sections "RelPermalink" "desc" -}}
{{- with $sections }}
<section aria-labelledby="journal-sections-title">
<h2 id="journal-sections-title">{{ if $.Parent.IsHome }}YEARS{{ else }}MONTHS{{ end }}</h2>
<ul class="document-list">
{{- range . }}
<li><a href="{{ .RelPermalink }}" lang="{{ .Params.lang }}">{{ .LinkTitle }}</a></li>
{{- end }}
</ul>
</section>
{{- end }}
{{- with .RegularPagesRecursive.ByDate.Reverse }}
<section aria-labelledby="journal-entries-title">
<h2 id="journal-entries-title">ENTRIES</h2>
<ol class="document-list journal-list">
{{- range . }}
<li>
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "2006-01-02" }}</time>
<a href="{{ .RelPermalink }}" lang="{{ .Params.lang }}">{{ .LinkTitle }}</a>
</li>
{{- end }}
</ol>
</section>
{{- end }}
</article>
{{ end }}
|