From e64d82e4cbf72c1639597fb2ddc46a3b7f577eaa Mon Sep 17 00:00:00 2001 From: XPoet Date: Tue, 5 Jan 2021 18:37:36 +0800 Subject: [PATCH] perf: 'img_position' -> 'article_img_align' in _config.yml --- _config.yml | 6 +++--- source/css/layout/common/markdown.styl | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/_config.yml b/_config.yml index ff8d992..8a12ed8 100644 --- a/_config.yml +++ b/_config.yml @@ -20,8 +20,8 @@ style: # Favicon (You can use local image or image external link) favicon: /images/logo.svg - # Image align position, value: left | center - img_position: left + # Article image align position, value: left | center + article_img_align: left # Left side width left_side_width: 260px @@ -36,7 +36,7 @@ style: # First screen first_screen: - enable: true + enable: false background_img: /images/bg.svg description: Keep writing and Keep loving. diff --git a/source/css/layout/common/markdown.styl b/source/css/layout/common/markdown.styl index 1a52756..364ecb7 100644 --- a/source/css/layout/common/markdown.styl +++ b/source/css/layout/common/markdown.styl @@ -173,7 +173,7 @@ display: block; box-shadow: 0 0 2px var(--shadow-color); - if (hexo-config('style.img_position') == 'center') { + if (hexo-config('style.article_img_align') == 'center') { margin: 10px auto 2px; } else { margin: 10px 0 2px;