diff options
author | Patrice Chalin <chalin@users.noreply.github.com> | 2022-07-26 22:09:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-26 22:09:00 +0300 |
commit | aa7a6388ecda04ca41ffd5fa59808d0bd65ad07e (patch) | |
tree | ed3f8c3c827cb9491ea2fc1779d1b6337785ce86 | |
parent | 44315a7e2f0b74bfd1e8695c292324959d65cc83 (diff) |
Fix for blog-only websites (#1121)
-rw-r--r-- | layouts/blog/list.html | 2 |
1 files changed, 1 insertions, 1 deletions
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 }} |