all repos — archie @ 877a560391fe176a25c1f59fd5f9689bfe3f86d6

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		{{ partial "footer.html" . }}
26	</div>
27
28	
29</body>
30
31</html>