Permalink
Browse files

add: setting for limit_article_width

  • Loading branch information...
1 parent 5ab4183 commit 439616c338c178bd70f4c4b78b8a88bc04334d95 @MOxFIVE committed Jul 25, 2016
Showing with 12 additions and 4 deletions.
  1. +5 −0 _config.yml
  2. +7 −4 source/css/_partial/article.styl
View
@@ -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 | 小功能设置 <<<
# 是否开启边栏多标签切换
@@ -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;

0 comments on commit 439616c

Please sign in to comment.