Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/google/docsy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Chalin <chalin@users.noreply.github.com>2022-07-26 22:09:00 +0300
committerGitHub <noreply@github.com>2022-07-26 22:09:00 +0300
commitaa7a6388ecda04ca41ffd5fa59808d0bd65ad07e (patch)
treeed3f8c3c827cb9491ea2fc1779d1b6337785ce86
parent44315a7e2f0b74bfd1e8695c292324959d65cc83 (diff)
Fix for blog-only websites (#1121)
-rw-r--r--layouts/blog/list.html2
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 }}