From 3970d9446f2c97c1d20819ebbcc0bf6d559cfbb3 Mon Sep 17 00:00:00 2001 From: kitian616 Date: Sun, 15 Oct 2017 22:07:45 +0800 Subject: [PATCH] fix: remove picture_max_width md header & fix errors about TOC --- README.md | 1 - _layouts/blog-base.html | 7 +------ _layouts/post.html | 12 +++++++++--- index.html | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 7a7d0ea3d4e..276a8ebdc59 100644 --- a/README.md +++ b/README.md @@ -109,7 +109,6 @@ bundle exec jekyll serve -H 0.0.0.0 | --- | --- | --- | | key | | 评论系统和阅读量统计使用的文章标识符,如果未设置则评论和统计无效 | | picture_frame | shadow | 该文章的图片框样式,如果为 shadow 则图片带有阴影边框 | -| picture_max_width | | 该文章图片的最大宽度,默认为 100%,例如 50%,100px | | modify_date | | 该文章的修改时间,不影响首页文章排序(date 代表发表时间,会影响文章排序) | | comment | true/false | 该文章是否能够评论,默认为 true(当然你也可以通过不设置 key 来实现,但是这样的话统计也失效了) | diff --git a/_layouts/blog-base.html b/_layouts/blog-base.html index 0411abe6b1a..9f136143924 100644 --- a/_layouts/blog-base.html +++ b/_layouts/blog-base.html @@ -10,11 +10,6 @@ box-shadow: 0 0 5px rgba(0, 0, 0, .4); } {% endif %} - {% if page.picture_max_width %} - .m-article-content .content-img { - max-width: {{ page.picture_max_width }} !important; - } - {% endif %} @@ -24,7 +19,7 @@ {% include blog/footer.html %}