all repos — archie @ 7d19d8b66a0720298c4a05df70a2db634b034b90

A minimal Hugo Theme

layouts/_default/list.html (view raw)

 1<!DOCTYPE html>
 2<html>
 3{{ partial "header.html" . }}
 4
 5<body>
 6	<div class="container wrapper list">
 7		{{ partial "head.html" . }}
 8
 9		{{ if isset .Data "Term" }}
10			<h1>Entries tagged - "{{ .Data.Term }}"</h1>
11		{{ else }}
12			<h1 class="page-title">All articles</h1>
13		{{ end }}
14
15		<ul class="posts">
16			{{- range .Data.Pages -}}
17			{{- if (in (.Site.Params.excludedTypes | default (slice "page")) .Type) -}}
18			{{- else -}}
19			<li class="post">
20				<a href="{{ .RelPermalink }}">{{.Title}}</a> <span class="meta">{{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</span>
21			</li>
22			{{- end -}}
23			{{- end -}}
24		</ul>
25	</div>
26
27	{{ partial "footer.html" . }}
28</body>
29
30</html>