summaryrefslogtreecommitdiff
path: root/layouts/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html30
1 files changed, 30 insertions, 0 deletions
diff --git a/layouts/index.html b/layouts/index.html
new file mode 100644
index 0000000..bd4d1da
--- /dev/null
+++ b/layouts/index.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html>
+ {{ partial "header.html" . }}
+ <body>
+ <div class="content">
+ {{ partial "head.html" . }}
+
+ <main class="list">
+ <div class="site-description">
+ {{- if isset .Site.Params "subtitle" -}}
+ <p>{{ .Site.Params.Subtitle | markdownify }}</p>
+ {{- end -}}
+ </div>
+ {{ $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 "Jan 2, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</time>
+ <br>{{ template "partials/pagedescription.html" . }}
+ <a class="readmore" href="{{ .RelPermalink }}">Read more ⟶</a>
+ </section>
+ {{ end }}
+ {{ template "partials/paginator.html" . }}
+ </main>
+ {{ partial "footer.html" . }}
+ </div>
+
+ </body>
+</html>