From 6d8d647ec51962be077a3432667a475c6fd08c8d Mon Sep 17 00:00:00 2001 From: Nuri Jung Date: Fri, 15 Jul 2022 00:39:28 +0900 Subject: fix: utterances script to obey the `follow_site_theme` setting (#91) * Fix js for correct theme load * Use dataTheme directly instead ternary operator --- _includes/extensions/comments/utterances.html | 57 +++++++++++++++------------ 1 file changed, 31 insertions(+), 26 deletions(-) (limited to '_includes/extensions/comments/utterances.html') diff --git a/_includes/extensions/comments/utterances.html b/_includes/extensions/comments/utterances.html index 4743562..8fe8beb 100644 --- a/_includes/extensions/comments/utterances.html +++ b/_includes/extensions/comments/utterances.html @@ -1,46 +1,51 @@ - - {%- if site.utterances.follow_site_theme -%} +
+{%- else -%} + {%- endif -%} -- cgit v1.2.3