File tree Expand file tree Collapse file tree 6 files changed +53
-90
lines changed
Expand file tree Collapse file tree 6 files changed +53
-90
lines changed Original file line number Diff line number Diff line change 11permalink : /:year/:month/:day/:title.html
2- paginate : 10
2+ paginate : 6
33markdown : kramdown
44
55kramdown :
@@ -25,11 +25,6 @@ favicon: /public/img/gin_ta_ma.gif
2525# 主题设置,自动激活某个标签
2626active : 关于
2727
28- # 首页除了最新文章外显示分类
29- cates :
30- - Git
31- - Java
32-
3328# 中文本地化
3429locals :
3530tags : 标签
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -41,13 +41,21 @@ prettify
4141
4242目前做的轻微修改:
4343
44- 1 . 删除了google analytics, 因为没有必要而且估计也没有人 (喂,有人吗,吱个声啊...个声啊...声啊...啊).
45- 2 . 删除了disqus评论,因为没有必要或者怕被人骂.
46- 3 . 将单个About页面,分成多个更具体的About页面
44+ 1 . 删除了google analytics. 因为没有必要而且估计也没有人 (喂,有人吗,吱个声啊...个声啊...声啊...啊).
45+ 2 . 删除了disqus评论. 因为没有必要或者怕被人骂.
46+ 3 . 将单个About页面, 分成多个更具体的About页面. 因为将需要说明的事情分散到多个详细的页面可能更不错.
47+ 4 . 首先只显示最新的文章, 不会显示其他分类的文章. 因为感觉没有必要显示其他分类的文章,这样更简约.
48+ 5 . 支持"上一页",和"下一页"
4749
48- 接下来的修改:
50+ 接下来的修改(目前努力学习前端开发中):
4951
50521 . 段落里面的文本排版不是很好,显得很拥挤
51532 . HTML水平线颜色特别浅,起不到很好的分割作用
52543 . 首页打开的时候默认是三栏的,感觉不是很必要.
53- 4 . 不支持当前页面回到"原列表","上一篇",和"下一篇"
55+ 4 . 不支持当前页面回到"原列表","上一篇"和"下一篇"
56+ 5 . 有些博客,或者一些网站,存在这样一个问题,即主页中的文章列表会把文章内容几乎全部呈现.
57+ 不知道设计人员是如何考虑交互的,很多时候阅读者是挑食的,不可能每篇都看的.
58+ 这样出现了一个让人不爽的地方,为了跳过一篇洋洋洒洒上千字,数十行的内容,需要不停地点鼠标或者滑手机屏幕.
59+ XX,不明白这些人是怎么样想的,就算为了自己舒服也不要这样吧.
60+ 而闫肃设计的博客主题中,则是只有每篇文章题目,需要点击进入.这似乎也是不妥的.
61+ 目前大多数网站的做法是少量准确的或核心的内容会呈现在主页面中,并提供"阅读全文"的链接.
Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ description: 保存各种Web前端相关资源
1515
1616[ Bootstrap中文网免费CDN] ( http://www.bootcdn.cn/ )
1717
18+ [ Pure] ( http://purecss.io/ )
19+
20+ [ Pure中文版] ( http://pure-site.ap01.aws.af.cm/ )
21+
1822[ jQuery] ( http://jquery.com/ )
1923
2024[ Front Awesome] ( http://fortawesome.github.io/Font-Awesome/ )
@@ -29,6 +33,8 @@ description: 保存各种Web前端相关资源
2933
3034[ Highcharts中文网免费CDN] ( http://www.hcharts.cn/open/cdn.php )
3135
36+ [ emoji cheat sheet] ( http://www.emoji-cheat-sheet.com/ )
37+
3238[ gbin1] ( http://www.cnblogs.com/gbin1/ )
3339
3440[ 极客标签] ( http://www.gbtags.com/gb/index.htm )
Original file line number Diff line number Diff line change 33title: 首页
44---
55
6- < br >
6+ < br / >
77< div class ="row ">
88< div class ="col-md-12 ">
99< div class ="panel panel-primary ">
1414< span class ="badge "> {{post.date | date:"%Y年%m月%d日"}}</ span >
1515</ a >
1616{% endfor %}
17+ </ div >
1718</ div >
1819</ div >
19- {% for cate in site.cates %}
20- < div class ="col-md-12 ">
21- < div class ="panel panel-primary ">
22- < div class ="panel-heading "> {{cate }}</ div >
23- {% for tag in site.tags %}
24- {% if tag[0] == cate %}
25- {% for post in tag[1] %}
26- < a href ='{{post.url }} ' class ="list-group-item pjaxlink clearfix ">
27- {{post.title}}
28- < span class ="badge "> {{post.date | date:"%Y年%m月%d日"}}</ span >
29- </ a >
30- {% endfor %}
31- {% endif %}
32- {% endfor %}
20+ </ div>
21+
22+ < div class ="row ">
23+
24+ {% if paginator.previous_page %}
25+ < div class ="previous col-md-4 center ">
26+ {% if paginator.previous_page == 1 %}
27+ < a href ="/ "> 前一页</ a >
28+ {% else %}
29+ < a href ="{{paginator.previous_page_path }} "> 前一页</ a >
30+ {% endif %}
31+ </ div >
32+ {% else %}
33+ < div class ="previous disabled col-md-4 center ">
34+ < span > 前一页</ span >
3335</ div >
36+ {% endif %}
37+
38+ < div class ="current col-md-4 center ">
39+ < span > {{paginator.page }} /{{paginator.total_pages}} </ span >
40+ </ div >
41+
42+ {% if paginator.next_page %}
43+ < div class ="next col-md-4 center ">
44+ < a href ="{{paginator.next_page_path }} "> 下一页</ a >
3445</ div >
35- {% endfor %}
36- </ div >
37-
46+ {% else %}
47+ < div class ="next disabled col-md-4 center ">
48+ < span > 下一页</ span >
49+ </ div >
50+ {% endif %}
51+
52+ </ div >
Original file line number Diff line number Diff line change @@ -67,5 +67,3 @@ a:hover{text-decoration:none}
6767color : # 2a6496 ;
6868background-color : # fafaf6 ;
6969}
70- /* 显示评论按钮 */
71- .show-commend {width : 100% ; margin-bottom : 40px }
You can’t perform that action at this time.
0 commit comments