Skip to content

Commit b3fa696

Browse files
committed
Ready for publishing
1 parent 015ab95 commit b3fa696

File tree

8 files changed

+48
-6
lines changed

8 files changed

+48
-6
lines changed

_config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ redcarpet:
1313

1414
pygments: true
1515
permalink: /blog/:year/:title/
16-
paginate: 50
16+
paginate: nil
1717
paginate_path: "blog/page/:num/"
1818
exclude:
1919
- README.md
2020
- Makefile
2121

22+
disqus: eleme
2223
nav:
2324
- title: 博客
2425
link: /blog/

_data/categories.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
news:
2+
title: 公告
3+
prose:
4+
5+
tech:
6+
title: 技术分享
7+
prose:
8+
9+
meetup:
10+
title: 线下聚会
11+
prose:

_data/members.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,9 @@ lepture:
66
github: lepture
77
twitter: lepture
88
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

_includes/disqus.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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 %}

_layouts/default.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>{{ page.title }} — {{ site.name }}</title>
6+
<link rel="alternate" type="application/atom+xml" title="Subscribe Feed" href="/feed.xml">
67
<link rel="stylesheet" href="/static/vendor.css">
78
<link rel="stylesheet" href="/static/site.css">
89
</head>

_layouts/post.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ <h2 class="entry-title" itemprop="name">{{ page.title }}</h2>
1414
<div class="entry-content" itemprop="articleBody">{{ content }}</div>
1515
{% include author.html %}
1616
</div>
17+
{% include disqus.html %}

_posts/2014-07-25-hello-blog.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
---
22
layout: post
3-
title: 写点博客
3+
title: 博客,我们写点什么
44
author: lepture
5-
categories: web
5+
categories: news
66
---
77

8-
A little test
8+
我们开始写博客了。虽然博客已经不再流行,但是有些内容并非 140 个字就能表达清楚,有些内容需要沉淀,需要被更多的人在任何时刻访问到,而不是沉默在一个手机应用内。
99

10-
http://lepture.com/
10+
这是一个技术博客,我们将在这里分享一点不值一哂的经验,分享我们的开源项目,也会记录我们技术团队琐碎的生活片段。假使我们的分享偶尔帮助到了你,这个博客的存在也就写得其所了。
11+
12+
我的朋友 Kavin Yao 在[《为什么要写博客?》](http://hackab.it/2012/01/why-blog/)一文里提到「好的博客的标准」,我们也许并不能完全满足。但是有一些原则,我们的想法是一致的。
13+
14+
1. 原创性,我们不会转载别人的文章,无论它是多么的有价值。
15+
2. 引用出处,对于有链接的引用,我们会使用文内超链接,没有的我们将注释说明。
1116

1217
```python
13-
def say():
18+
def blog():
1419
return "hello world"
1520
```

static/site.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ html, body {
6969
.entry-content {
7070
margin-bottom: 60px;
7171
}
72+
.entry-comments {
73+
margin: 40px 0;
74+
}
7275
.hentry .vcard {
7376
border-top: 1px solid #eee;
7477
border-bottom: 1px solid #eee;

0 commit comments

Comments
 (0)