From 3e0213975e8689d47b3addaf2e890a59359e6347 Mon Sep 17 00:00:00 2001 From: jinqilin721 Date: Fri, 27 Mar 2020 13:20:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E7=82=B9=E7=82=B9=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layout/common/article.ftl | 36 +++++++++++++++++++++-------------- layout/common/module.ftl | 2 +- layout/common/widget.ftl | 25 ++++++++++++++++-------- layout/plugin/style.theme.ftl | 2 +- 4 files changed, 41 insertions(+), 24 deletions(-) diff --git a/layout/common/article.ftl b/layout/common/article.ftl index fca02a0..283904f 100644 --- a/layout/common/article.ftl +++ b/layout/common/article.ftl @@ -109,7 +109,7 @@ <#if post.summary?? && post.summary!=''>
@@ -149,27 +149,35 @@ - <#if !index && nextPost?? && prePost??> + <#if !index && (nextPost?? || prePost??)>
- <#if prePost??> -
diff --git a/layout/common/module.ftl b/layout/common/module.ftl index 7986490..e351747 100644 --- a/layout/common/module.ftl +++ b/layout/common/module.ftl @@ -23,7 +23,7 @@ ${post.createTime?string["yyyy-MM-dd EE"]}
${post.title!}
${post.summary!}
- 阅读更多 + 阅读更多 diff --git a/layout/common/widget.ftl b/layout/common/widget.ftl index e2c8c8f..c25fc7b 100644 --- a/layout/common/widget.ftl +++ b/layout/common/widget.ftl @@ -32,17 +32,26 @@ <#if position == 'right'> - <#if post??> - <#include "../widget/cate_posts.ftl"> - <#include "../widget/tag_posts.ftl"> - <#include "../widget/toc-post.ftl"> - <#else> + <#if is_sheet??> <#if settings.sidebar_recentpost!true> <#include "../widget/recent_posts.ftl"> - - <#if settings.sidebar_recentcomment!true> - <#include "../widget/recent_comments.ftl"> + <#if settings.sidebar_recentcomment!true> + <#include "../widget/recent_comments.ftl"> + + <#else> + <#if post??> + <#include "../widget/cate_posts.ftl"> + <#include "../widget/tag_posts.ftl"> + <#include "../widget/toc-post.ftl"> + <#else> + <#if settings.sidebar_recentpost!true> + <#include "../widget/recent_posts.ftl"> + + + <#if settings.sidebar_recentcomment!true> + <#include "../widget/recent_comments.ftl"> + <#if position == 'left'> diff --git a/layout/plugin/style.theme.ftl b/layout/plugin/style.theme.ftl index f47ef85..c3f6319 100644 --- a/layout/plugin/style.theme.ftl +++ b/layout/plugin/style.theme.ftl @@ -224,7 +224,7 @@ code { color: var(--color); - background-color: var(--code-bg-color) + /*background-color: var(--code-bg-color)*/ } code[class*="language-"],