From ed72df31df02fbd269f077a39ea0101fc583aec8 Mon Sep 17 00:00:00 2001 From: Marty Sluijtman Date: Thu, 29 Sep 2022 14:42:21 +0200 Subject: [PATCH] More site specific things to site repo --- layouts/_default/index.html | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 layouts/_default/index.html diff --git a/layouts/_default/index.html b/layouts/_default/index.html new file mode 100644 index 0000000..e0d7c74 --- /dev/null +++ b/layouts/_default/index.html @@ -0,0 +1,32 @@ +{{ define "main" }} +{{ .Content -}} +
+ {{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "rambles") (eq (trim $.Site.Params.contentTypeName " ") "")) }} + {{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "rambles" }} + + {{ $PageContext := . }} + {{ if .IsHome }} + {{ $PageContext = .Site }} + {{ end }} + + {{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }} + + {{ range first 5 .Paginator.Pages }} + + + + + + + + {{ end }} + +

Read more

+
+ {{ partial "stickers.html" }} + +{{ end }}