From 779f3c20e042d797c070f9740b5c7a8e23ad8e81 Mon Sep 17 00:00:00 2001 From: "Kevin C. Coram" Date: Sat, 7 Dec 2019 14:33:50 -0500 Subject: [PATCH] Wrap homepage list in h-feed microformat --- layouts/index.html | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index 8739a38..2334581 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,14 +1,19 @@ {{ define "content" }} -
+
{{.Content}}
- -{{ range $index, $page := (.Paginate (where (where .Site.RegularPages "Type" "in" site.Params.mainSections) ".Params.hidden" "!=" "true" )).Pages }} -{{ if ne $index 0 }} -{{ end }} -{{ .Render "summary" }} -{{ end }} +
+ {{ if .Site.Params.homepageSectionTitle }} +

{{ .Site.Params.homepageSectionTitle }}

+ {{ end }} + + {{ range $index, $page := (.Paginate (where (where .Site.RegularPages "Type" "in" site.Params.mainSections) ".Params.hidden" "!=" "true" )).Pages }} + {{ if ne $index 0 }} + {{ end }} + {{ .Render "summary" }} + {{ end }} +
{{ end }} {{ define "content-footer" }} {{ partial "paginator.html" .Paginator }}