From ad66c6ab1e193351b560f229e44293c2305c4bb5 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sun, 4 Dec 2022 07:40:57 -0500 Subject: [PATCH] Fix comments titles and only enable comments to blog posts --- themes/red/layouts/_default/single.html | 4 +++- themes/red/layouts/shortcodes/guestbook.html | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/themes/red/layouts/_default/single.html b/themes/red/layouts/_default/single.html index a99005a..5166d58 100644 --- a/themes/red/layouts/_default/single.html +++ b/themes/red/layouts/_default/single.html @@ -27,6 +27,7 @@ {{ end }} + {{ if in .File.Dir "blog" }}

Comments

-
+
+ {{ end }} {{ with .Params.comments }}

Mastodon Comments

diff --git a/themes/red/layouts/shortcodes/guestbook.html b/themes/red/layouts/shortcodes/guestbook.html index ae5de15..4c12380 100644 --- a/themes/red/layouts/shortcodes/guestbook.html +++ b/themes/red/layouts/shortcodes/guestbook.html @@ -5,6 +5,6 @@ data-isso-avatar="false" data-isso-vote="false" src="//comments.redstrate.com/js/embed.min.js"> -
+
\ No newline at end of file