Skip to content

Commit

Permalink
Fix for blog-only websites (#1121)
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin committed Jul 26, 2022
1 parent 44315a7 commit aa7a638
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/blog/list.html
Original file line number Diff line number Diff line change
@@ -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 }}
Expand Down

0 comments on commit aa7a638

Please sign in to comment.