mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-14 19:26:40 +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" . }}
|
||||
|
@@ -95,8 +95,6 @@
|
||||
data-isso-lang="{{ .Site.LanguageCode }}"
|
||||
src="//{{ .Site.Params.issoHost }}/js/embed.min.js"
|
||||
></script>
|
||||
{{ else }}
|
||||
this is where comments would go
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user