From 6ada4898f94208043ad310a9a4a5414237b741ad Mon Sep 17 00:00:00 2001 From: "Kevin C. Coram" Date: Tue, 31 Dec 2019 08:57:48 -0800 Subject: [PATCH] Only show homepage content on first page --- layouts/index.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/index.html b/layouts/index.html index ba0730c..82f82c1 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,15 +1,19 @@ {{ define "content" }} +{{ if eq .Paginator.PageNumber 1 }}
{{.Content}}
+{{ end }}
+ {{ if eq .Paginator.PageNumber 1 }} {{ if .Site.Params.homepageSectionTitle }}

{{ .Site.Params.homepageSectionTitle }}

{{ end }} + {{ end }} {{ range $index, $page := (.Paginate (where (where .Site.RegularPages "Type" "in" site.Params.mainSections) ".Params.hidden" "!=" "true" )).Pages }} {{ if ne $index 0 }}