all repos — archie @ 58d02550f13733cd31d85335f4211bc5ec73d2a5

A minimal Hugo Theme

layouts/index.html (view raw)

 1<!DOCTYPE html>
 2<html>
 3{{ partial "header.html" . }}
 4<body>
 5		{{ partial "head.html" . }}
 6    	
 7			<main class="list">
 8      <div class="site-description">
 9		{{- if isset .Site.Params "subtitle" -}}
10		<p>{{ .Site.Params.Subtitle | markdownify }}</p>
11		{{- end -}}
12	</div>
13				{{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
14				{{ $paginator := .Paginate (where $pages "Params.hidden" "ne" true) }}
15				{{ range $paginator.Pages }}
16				<section class="list-item">
17					<h1 class="title"><a href="{{ .RelPermalink }}">{{.Title}}</a></h1>
18					<time>{{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</time>
19					<br><span class="description">
20						{{ if isset .Params "description" }}
21						{{ .Description }}
22						{{ else }}
23						{{ .Summary }}&hellip;
24						{{ end }}
25					</span><br/>
26					<a href="{{ .RelPermalink }}">Read more ⟶</a>
27				</section>
28				{{ end }}
29				{{ template "partials/paginator.html" . }}
30			</main>
31			{{ partial "footer.html" . }}
32		</div>
33		
34	</div>
35	
36</body>
37</html>