mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 11:46:41 +02:00
Finalize any-page comment changes
- If `blogs` isn't set in the config file, `blog` is treated as a blog, to avoid breaking existing sites - If it is, only sections listed are treated as blogs, possibly excluding `blog` - Differences include comments, but also hn/lobsters links, time to read, and tags (possibly non-exhaustive)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{{ partial "header.html" . }}
|
||||
|
||||
{{ if in .Site.Params.blogs .Section }}
|
||||
{{ if (or (in .Site.Params.blogs .Section) (and (eq "blog" .Section) (not (isset .Site.Params "blogs")))) }}
|
||||
{{ partial "blog_single.html" . }}
|
||||
{{ else }}
|
||||
{{ partial "base_single.html" . }}
|
||||
|
Reference in New Issue
Block a user