File tree Expand file tree Collapse file tree 8 files changed +48
-6
lines changed Expand file tree Collapse file tree 8 files changed +48
-6
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,13 @@ redcarpet:
13
13
14
14
pygments : true
15
15
permalink : /blog/:year/:title/
16
- paginate : 50
16
+ paginate : nil
17
17
paginate_path : " blog/page/:num/"
18
18
exclude :
19
19
- README.md
20
20
- Makefile
21
21
22
+ disqus : eleme
22
23
nav :
23
24
- title : 博客
24
25
link : /blog/
Original file line number Diff line number Diff line change
1
+ news :
2
+ title : 公告
3
+ prose :
4
+
5
+ tech :
6
+ title : 技术分享
7
+ prose :
8
+
9
+ meetup :
10
+ title : 线下聚会
11
+ prose :
Original file line number Diff line number Diff line change 6
6
github : lepture
7
7
twitter : lepture
8
8
weibo : lepture
9
+
10
+ lxyu :
11
+ name : Lx Yu
12
+ avatar : " https://avatars2.githubusercontent.com/u/678685"
13
+ url : " http://lxyu.net"
14
+ github : lxyu
Original file line number Diff line number Diff line change
1
+ {% if site.disqus %}
2
+ < div id ="disqus_thread " class ="entry-comments yue ">
3
+ </ div >
4
+ < script >
5
+ var disqus_shortname = '{{ site.disqus }}' ;
6
+ var disqus_title = '{{ page.title }}' ;
7
+ var disqus_url = '{{ site.url }}{{ page.url }}' ;
8
+ ( function ( ) {
9
+ var dsq = document . createElement ( 'script' ) ; dsq . type = 'text/javascript' ; dsq . async = true ;
10
+ dsq . src = 'http://' + disqus_shortname + '.disqus.com/embed.js' ;
11
+ ( document . getElementsByTagName ( 'head' ) [ 0 ] || document . getElementsByTagName ( 'body' ) [ 0 ] ) . appendChild ( dsq ) ;
12
+ } ) ( ) ;
13
+ </ script >
14
+ {% endif %}
Original file line number Diff line number Diff line change 3
3
< head >
4
4
< meta charset ="UTF-8 ">
5
5
< title > {{ page.title }} — {{ site.name }}</ title >
6
+ < link rel ="alternate " type ="application/atom+xml " title ="Subscribe Feed " href ="/feed.xml ">
6
7
< link rel ="stylesheet " href ="/static/vendor.css ">
7
8
< link rel ="stylesheet " href ="/static/site.css ">
8
9
</ head >
Original file line number Diff line number Diff line change @@ -14,3 +14,4 @@ <h2 class="entry-title" itemprop="name">{{ page.title }}</h2>
14
14
< div class ="entry-content " itemprop ="articleBody "> {{ content }}</ div >
15
15
{% include author.html %}
16
16
</ div >
17
+ {% include disqus.html %}
Original file line number Diff line number Diff line change 1
1
---
2
2
layout : post
3
- title : 写点博客
3
+ title : 博客,我们写点什么
4
4
author : lepture
5
- categories : web
5
+ categories : news
6
6
---
7
7
8
- A little test
8
+ 我们开始写博客了。虽然博客已经不再流行,但是有些内容并非 140 个字就能表达清楚,有些内容需要沉淀,需要被更多的人在任何时刻访问到,而不是沉默在一个手机应用内。
9
9
10
- http://lepture.com/
10
+ 这是一个技术博客,我们将在这里分享一点不值一哂的经验,分享我们的开源项目,也会记录我们技术团队琐碎的生活片段。假使我们的分享偶尔帮助到了你,这个博客的存在也就写得其所了。
11
+
12
+ 我的朋友 Kavin Yao 在[ 《为什么要写博客?》] ( http://hackab.it/2012/01/why-blog/ ) 一文里提到「好的博客的标准」,我们也许并不能完全满足。但是有一些原则,我们的想法是一致的。
13
+
14
+ 1 . 原创性,我们不会转载别人的文章,无论它是多么的有价值。
15
+ 2 . 引用出处,对于有链接的引用,我们会使用文内超链接,没有的我们将注释说明。
11
16
12
17
``` python
13
- def say ():
18
+ def blog ():
14
19
return " hello world"
15
20
```
Original file line number Diff line number Diff line change @@ -69,6 +69,9 @@ html, body {
69
69
.entry-content {
70
70
margin-bottom : 60px ;
71
71
}
72
+ .entry-comments {
73
+ margin : 40px 0 ;
74
+ }
72
75
.hentry .vcard {
73
76
border-top : 1px solid # eee ;
74
77
border-bottom : 1px solid # eee ;
You can’t perform that action at this time.
0 commit comments