From 53f520615a13d7d0cb5dc90e2559dc2a9945f701 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Tue, 12 Feb 2019 09:56:52 +0800 Subject: [PATCH] fix friends page --- layout/_third-party/comments.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/_third-party/comments.ejs b/layout/_third-party/comments.ejs index 0bf3fbb..253320a 100644 --- a/layout/_third-party/comments.ejs +++ b/layout/_third-party/comments.ejs @@ -10,7 +10,7 @@ if ((config.disqus_shortname || config.livere_uid || config.valine) && theme.services.comments == true && page.comments != false) { displayComments = true; } - if (theme.services.popular_posts == true) { + if (theme.services.popular_posts == true && page.layout == 'post' && page.popular_posts != false) { displayPopularPosts = true; } }