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" . }}
|
{{ 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" . }}
|
{{ partial "blog_single.html" . }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ partial "base_single.html" . }}
|
{{ partial "base_single.html" . }}
|
||||||
|
@@ -95,8 +95,6 @@
|
|||||||
data-isso-lang="{{ .Site.LanguageCode }}"
|
data-isso-lang="{{ .Site.LanguageCode }}"
|
||||||
src="//{{ .Site.Params.issoHost }}/js/embed.min.js"
|
src="//{{ .Site.Params.issoHost }}/js/embed.min.js"
|
||||||
></script>
|
></script>
|
||||||
{{ else }}
|
|
||||||
this is where comments would go
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user