hexo如何给文章加框

找到hexo/themes/next/source/css/_common/components/post/index.styl
将:

1
2
3
4
5
if (hexo-config('motion.transition.post_block')) {
.post-block, .pagination, .comments {
visibility: hidden;
}
}

改为:

1
2
3
4
5
6
7
8
9
10
11
12
if (hexo-config('motion.transition.post_block')) {
.post-block{
visibility: hidden;
margin-top: 60px;
margin-bottom: 60px;
padding: 25px;
-webkit-box-shadow: 0 0 5px rgba(202, 203, 203, 1);
-moz-box-shadow: 0 0 5px rgba(202, 203, 204, 1);
}
.pagination, .comments {
visibility: hidden;
}