blob: 9fa82dfe026e774b19b1573c75a1e360f2e2fc59 (
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
34
35
36
37
38
39
40
41
42
43
44
45
|
{{- define "title" -}}
Articles
{{- end -}}
{{- define "main" -}}
{{/* get visible articles */}}
{{- $rows := union (where .Pages "Params.show" true) (where .Pages "Params.show" nil) -}}
<div class='container'>
<div class='section is-small'>
<h1 class='title' title='{{.Title}}' aria-label='{{.Title}}'>
Articles
</h1>
<div class='content'>
<ul>
{{- range $rows.ByTitle -}}
<li>
<a
href='{{.Permalink}}'
title='{{.Title}}'
aria-label='{{.Title}}'
>
{{- .Title -}}
</a>
{{- if .Date -}}
-
<span
class='date'
title='Date for "{{.Title}}".'
aria-label='Date for "{{.Title}}".'
>
{{- .Date.Format "January 2, 2006" -}}
</span><!-- date -->
{{- end -}}
</li>
{{- else -}}
<li>No articles.</li>
{{- end -}}
</ul>
</div><!-- content -->
</div><!-- section -->
</div><!-- container -->
{{- end -}}
|