archie-shades-of-purple/layouts/index.html

31 lines
1,007 B
HTML
Raw Normal View History

2020-04-08 20:44:29 +02:00
<!DOCTYPE html>
<html>
2020-04-22 12:14:28 +02:00
{{ partial "header.html" . }}
<body>
<div class="content">
{{ partial "head.html" . }}
2020-04-08 20:44:29 +02:00
<main class="list">
2020-04-22 12:14:28 +02:00
<div class="site-description">
{{- if isset .Site.Params "subtitle" -}}
<p>{{ .Site.Params.Subtitle | .Page.RenderString }}</p>
2020-04-22 12:14:28 +02:00
{{- end -}}
</div>
2020-04-08 20:44:29 +02:00
{{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
{{ $paginator := .Paginate (where $pages "Params.hidden" "ne" true) }}
{{ range $paginator.Pages }}
<section class="list-item">
<h1 class="title"><a href="{{ .RelPermalink }}">{{.Title}}</a></h1>
<time>{{ dateFormat ":date_medium" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</time>
<br>{{ template "partials/pagedescription.html" . }}
2022-12-04 07:13:40 +01:00
<a class="readmore" href="{{ .RelPermalink }}">Read more ⟶</a>
2020-04-08 20:44:29 +02:00
</section>
{{ end }}
{{ template "partials/paginator.html" . }}
</main>
{{ partial "footer.html" . }}
</div>
2020-04-22 12:14:28 +02:00
</body>
</html>