From aa7a6388ecda04ca41ffd5fa59808d0bd65ad07e Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Tue, 26 Jul 2022 15:09:00 -0400 Subject: Fix for blog-only websites (#1121) --- layouts/blog/list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/blog/list.html b/layouts/blog/list.html index f5fd2dd..554eaf0 100644 --- a/layouts/blog/list.html +++ b/layouts/blog/list.html @@ -1,5 +1,5 @@ {{ define "main" }} -{{ if .Parent.IsHome }} +{{ if (and .Parent .Parent.IsHome) }} {{ $.Scratch.Set "blog-pages" (where .Site.RegularPages "Section" .Section) }} {{ else }} {{$.Scratch.Set "blog-pages" .Pages }} -- cgit v1.2.3