perf: 'img_position' -> 'article_img_align' in _config.yml
This commit is contained in:
parent
4468bf48e5
commit
e64d82e4cb
|
@ -20,8 +20,8 @@ style:
|
||||||
# Favicon (You can use local image or image external link)
|
# Favicon (You can use local image or image external link)
|
||||||
favicon: /images/logo.svg
|
favicon: /images/logo.svg
|
||||||
|
|
||||||
# Image align position, value: left | center
|
# Article image align position, value: left | center
|
||||||
img_position: left
|
article_img_align: left
|
||||||
|
|
||||||
# Left side width
|
# Left side width
|
||||||
left_side_width: 260px
|
left_side_width: 260px
|
||||||
|
@ -36,7 +36,7 @@ style:
|
||||||
|
|
||||||
# First screen
|
# First screen
|
||||||
first_screen:
|
first_screen:
|
||||||
enable: true
|
enable: false
|
||||||
background_img: /images/bg.svg
|
background_img: /images/bg.svg
|
||||||
description: Keep writing and Keep loving.
|
description: Keep writing and Keep loving.
|
||||||
|
|
||||||
|
|
|
@ -173,7 +173,7 @@
|
||||||
display: block;
|
display: block;
|
||||||
box-shadow: 0 0 2px var(--shadow-color);
|
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;
|
margin: 10px auto 2px;
|
||||||
} else {
|
} else {
|
||||||
margin: 10px 0 2px;
|
margin: 10px 0 2px;
|
||||||
|
|
Loading…
Reference in New Issue