Skip to content

Commit

Permalink
add: setting for limit_article_width
Browse files Browse the repository at this point in the history
  • Loading branch information
MOxFIVE committed Jul 25, 2016
1 parent 5ab4183 commit 439616c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
5 changes: 5 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@ animate: true
# 工具提示框样式美化
jquery_ui: false

# Max width of right cloumn | 限制右侧内容的宽带
limit_article_width:
on: false
max_width: 60 # em

# >>> Small features | 小功能设置 <<<

# 是否开启边栏多标签切换
Expand Down
11 changes: 7 additions & 4 deletions source/css/_partial/article.styl
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
.body-wrap
max-width 60em
margin auto
margin-bottom 126px
overflow hidden
if hexo-config("limit_article_width.on")
max-width hexo-config("limit_article_width.max_width")em
margin auto

margin-bottom 126px
overflow hidden


.article {
margin: 30px;
Expand Down

0 comments on commit 439616c

Please sign in to comment.