From 9c5dd50e548e9a48597b7c496e87833d242f73e4 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Sun, 6 Jan 2019 18:55:05 +0800 Subject: [PATCH] fix livere --- layout/_partial/scripts.ejs | 2 +- layout/_third-party/comments.ejs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/_partial/scripts.ejs b/layout/_partial/scripts.ejs index c48b36b..bb386e0 100755 --- a/layout/_partial/scripts.ejs +++ b/layout/_partial/scripts.ejs @@ -171,7 +171,7 @@ <% var displayComments = false; if (page && theme.services) { - if ((config.disqus_shortname || config.livere_shortname || config.valine) && theme.services.comments == true && page.comments != false) { + if ((config.disqus_shortname || config.livere_uid || config.valine) && theme.services.comments == true && page.comments != false) { displayComments = true; } } diff --git a/layout/_third-party/comments.ejs b/layout/_third-party/comments.ejs index 28caf69..b70ff4b 100644 --- a/layout/_third-party/comments.ejs +++ b/layout/_third-party/comments.ejs @@ -6,7 +6,7 @@ if (theme.services.recommended_posts == true && theme.recommended_posts && theme.recommended_posts.autoDisplay == false && page.layout == 'post' && page.recommended_posts != false) { displayRecommentedPosts = true; } - if ((config.disqus_shortname || config.livere_shortname || config.valine) && theme.services.comments == true && page.comments != false) { + if ((config.disqus_shortname || config.livere_uid || config.valine) && theme.services.comments == true && page.comments != false) { displayComments = true; } }