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:
Michael Noronha
2018-06-16 23:51:32 -05:00
parent 924efa0457
commit ae37b77a67
2 changed files with 1 additions and 3 deletions

View File

@@ -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" . }}

View File

@@ -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>