summaryrefslogtreecommitdiff
path: root/themes/archie/layouts/_default/list.html
blob: aeeebb9cb320ec9658ab880e5f3e28d1d7e44fdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{{ define "main" }}
{{- if .Content -}}
{{ .Content }}
{{ else }}
{{ if isset .Data "Term" }}
<h1>Entries tagged - "{{ .Data.Term }}"</h1>
{{ else }}
<h1 class="page-title">All articles</h1>
{{ end }}

<ul class="posts">
	{{- range .Data.Pages -}}
	{{- if (not (in (.Site.Params.excludedTypes | default (slice "page")) .Type)) -}}
	<li class="post">
		<span class="meta">{{ dateFormat "02 Jan 2006" .Date }}</span> - <a href="{{ .RelPermalink }}">{{.Title}}</a>
	</li>
	{{- end -}}
	{{- end -}}
</ul>
{{ end }}
{{ end }}