diff --git a/_config.yml b/_config.yml index 3b57132..c8b1ef3 100755 --- a/_config.yml +++ b/_config.yml @@ -329,6 +329,7 @@ style: logo: 'system-ui, "Microsoft Yahei", "Segoe UI", -apple-system, Roboto, Ubuntu, "Helvetica Neue", Arial, "WenQuanYi Micro Hei", sans-serif' body: 'system-ui, "Microsoft Yahei", "Segoe UI", -apple-system, Roboto, Ubuntu, "Helvetica Neue", Arial, "WenQuanYi Micro Hei", sans-serif' code: 'Menlo, Monaco, Consolas, system-ui, "Courier New", monospace, sans-serif' + text-align: left color: common: theme: '#1BCDFC' # 主题色 diff --git a/source/css/_common/base.styl b/source/css/_common/base.styl index 04bf759..1f02218 100644 --- a/source/css/_common/base.styl +++ b/source/css/_common/base.styl @@ -13,7 +13,7 @@ a color: $color-hover p:not([class]) - text-align: justify + text-align: convert(hexo-config('style.text-align')) hr color: var(--text-meta) diff --git a/source/css/_layout/md.styl b/source/css/_layout/md.styl index 31d9b13..c81556b 100644 --- a/source/css/_layout/md.styl +++ b/source/css/_layout/md.styl @@ -24,7 +24,7 @@ article.md.content &.indent >p:not([class]) text-indent: 'calc(%s * 2)' % $fs-p - text-align: justify + text-align: convert(hexo-config('style.text-align')) a text-indent: 0 h1,h2,h3,h4,h5,h6