From ae37b77a674a45d39afc2341e63a1ad83fcb3e51 Mon Sep 17 00:00:00 2001 From: Michael Noronha Date: Sat, 16 Jun 2018 23:51:32 -0500 Subject: [PATCH] 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) --- layouts/_default/single.html | 2 +- layouts/partials/blog_single.html | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index dfe5e2b..5c88eb7 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -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" . }} diff --git a/layouts/partials/blog_single.html b/layouts/partials/blog_single.html index 51b1573..c374980 100644 --- a/layouts/partials/blog_single.html +++ b/layouts/partials/blog_single.html @@ -95,8 +95,6 @@ data-isso-lang="{{ .Site.LanguageCode }}" src="//{{ .Site.Params.issoHost }}/js/embed.min.js" > - {{ else }} - this is where comments would go {{ end }}