diff options
Diffstat (limited to 'themes/conspiracy/layouts/index.html')
-rw-r--r-- | themes/conspiracy/layouts/index.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/themes/conspiracy/layouts/index.html b/themes/conspiracy/layouts/index.html new file mode 100644 index 0000000..28b5cc5 --- /dev/null +++ b/themes/conspiracy/layouts/index.html @@ -0,0 +1,22 @@ +{{- define "main" }} + <header> + <h1>{{ .Title }}</h1> + </header> + <main class="cards"> + {{- if .Content }} + <div class="intro"> + {{ .Content }} + </div> + {{- end }} + + <h2>Recently updated projects</h2> + {{ range first 2 (where site.RegularPages "Section" "==" "projects") }} + {{ partial "card.html" . }} + {{- end }} + + <h2>Blog</h2> + {{ range (where site.RegularPages "Section" "==" "blog") }} + {{ partial "card.html" . }} + {{- end }} + </main> +{{- end }} |