From eea96d7504ce3851c1c38572a9120a53429f32d2 Mon Sep 17 00:00:00 2001 From: liuyib <1656081615@qq.com> Date: Sun, 15 Sep 2019 14:10:16 +0800 Subject: [PATCH] fix: Supporting the config item for 'end_text: horizon_line' --- source/css/_common/components/post/post.styl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/css/_common/components/post/post.styl b/source/css/_common/components/post/post.styl index e585fa3..ed7793a 100644 --- a/source/css/_common/components/post/post.styl +++ b/source/css/_common/components/post/post.styl @@ -93,10 +93,13 @@ if (hexo-config('post_widget.end_text.enable')) { &-end { margin: 0 0 1rem; - border-top: 1px dashed $post-end-line-color; padding: 1rem 0 0; text-align: center; color: $post-end-color; + + if (hexo-config('post_widget.end_text.horizon_line')) { + border-top: 1px dashed $post-end-line-color; + } } } -- GitLab