From b101f7e67a312d673003c26e33840c4ec1f5c8d7 Mon Sep 17 00:00:00 2001 From: XPoet Date: Mon, 26 Oct 2020 10:13:07 +0800 Subject: [PATCH] fix: fixed comment and nav display error in article content page --- layout/article-content.ejs | 58 ++++++++++++++++++++++---------------- 1 file changed, 33 insertions(+), 25 deletions(-) diff --git a/layout/article-content.ejs b/layout/article-content.ejs index a20afd7..38871f8 100644 --- a/layout/article-content.ejs +++ b/layout/article-content.ejs @@ -13,31 +13,39 @@ <%- page.content %> -
- <% if (page.prev) { %> -
- -
- <% } %> - <% if (page.next) { %> -
- -
- <% } %> -
+ <% if (page.prev || page.next) { %> +
+ <% if (page.prev) { %> +
+ +
+ <% } %> + <% if (page.next) { %> +
+ +
+ <% } %> +
+ <% } %> -
- <%- partial('_partial/comments/comment') %> -
+ <% if (theme.comments.valine.enable || theme.comments.gitalk.enable) { %> +
+ <%- partial('_partial/comments/comment') %> +
+ <% } %>