-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathatom.xml
More file actions
121 lines (105 loc) · 5.13 KB
/
atom.xml
File metadata and controls
121 lines (105 loc) · 5.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title><![CDATA[Lian's blog]]></title>
<subtitle><![CDATA[牛掰的人生不需要解释]]></subtitle>
<link href="/atom.xml" rel="self"/>
<link href="http://yoursite.com/"/>
<updated>2014-02-06T09:21:17.184Z</updated>
<id>http://yoursite.com/</id>
<author>
<name><![CDATA[Lian]]></name>
</author>
<generator uri="http://zespia.tw/hexo/">Hexo</generator>
<entry>
<title><![CDATA[markdown]]></title>
<link href="http://yoursite.com/2014/02/06/markdown/"/>
<id>http://yoursite.com/2014/02/06/markdown/</id>
<published>2014-02-06T08:50:23.000Z</published>
<updated>2014-02-06T09:01:51.000Z</updated>
<content type="html"><![CDATA[<p>概要<a id="more"></a></p>
<h1 id="h1">h1</h1>
<h2 id="h2">h2</h2>
<blockquote>
<p>老子说。。。。</p>
</blockquote>
<p><code>行内代码</code></p>
<figure class="highlight"><table><tr><td class="gutter"><pre>1
2
3
</pre></td><td class="code"><pre><span class="keyword">for</span>(var <span class="built_in">i</span>=<span class="number">0</span>; <span class="built_in">i</span> < <span class="number">10</span>; <span class="built_in">i</span>++) <span class="cell">{
console.log(<span class="string">'sth'</span>)
}</span>
</pre></td></tr></table></figure>
<p>无序列表</p>
<ul>
<li>sth</li>
<li>sth2</li>
<li>sth4</li>
</ul>
<p>有序列表</p>
<ol>
<li>first</li>
<li>second</li>
<li>third</li>
</ol>
<hr>
<p><a href="//www.google.com">google</a>
<img src="http://iamjoel.github.io/img/logo.svg" alt="icon"></p>
]]></content>
<summary type="html"><![CDATA[<p>概要]]></summary>
<category term="markdown" scheme="http://yoursite.com/tags/markdown/"/>
<category term="tech" scheme="http://yoursite.com/categories/tech/"/>
</entry>
<entry>
<title><![CDATA[hexo 安装]]></title>
<link href="http://yoursite.com/2014/02/06/hexo/"/>
<id>http://yoursite.com/2014/02/06/hexo/</id>
<published>2014-02-06T08:38:32.000Z</published>
<updated>2014-02-06T08:45:47.000Z</updated>
<content type="html"><![CDATA[<h2 id="-hexo">关于hexo</h2>
<p><a href="http://zespia.tw/hexo/" target="_blank">hexo</a>是一个基于Node.js的静态博客程序,可以方便的生成静态网页托管在github和Heroku上。作者是来自台湾的@tommy351。<a id="more"></a>引用@tommy351的话,hexo:</p>
<blockquote>
<p>快速、简单且功能强大的 Node.js 博客框架。
A fast, simple & powerful blog framework, powered by Node.js.</p>
</blockquote>
<p>类似于jekyll、Octopress、Wordpress,我们可以用hexo创建自己的博客,托管到github或Heroku上,绑定自己的域名,用markdown写文章。</p>
<h2 id="-">安装</h2>
<figure class="highlight"><table><tr><td class="gutter"><pre>1
</pre></td><td class="code"><pre>npm <span class="keyword">install</span> -g hexo
</pre></td></tr></table></figure>
<h2 id="-">初始化</h2>
<figure class="highlight"><table><tr><td class="gutter"><pre>1
</pre></td><td class="code"><pre>hexo init
</pre></td></tr></table></figure>
<h2 id="-">创建文章</h2>
<figure class="highlight"><table><tr><td class="gutter"><pre>1
</pre></td><td class="code"><pre>hexo <span class="keyword">new</span> <span class="string">'文章名'</span>
</pre></td></tr></table></figure>
<p>然后可以去source/_posts/文章名.md 去编辑文章内容</p>
<h2 id="-">预览</h2>
<figure class="highlight"><table><tr><td class="gutter"><pre>1
2
</pre></td><td class="code"><pre>hexo generate
hexo <span class="keyword">server</span>
</pre></td></tr></table></figure>
<p>然后访问<code>http://127.0.0.1:4000/</code></p>
<h2 id="-">命令缩写</h2>
<p>hexo g == hexo generate<br>hexo d == hexo deploy<br>hexo s == hexo server<br>hexo n == hexo new </p>
<h1 id="tips">tips</h1>
<ul>
<li>有的时候当你修改页面或更改配置后发现并没有立即生效,可以执行<code>hexo clean</code>然后再启动<code>hexo server</code></li>
<li>在文档中插入<code><!--more--></code>就可以将文章分隔,more以上的部分会已摘要的形式显示,当查看全文时more以下的部分才会显示出来。也可以在Markdown文件中定义<code>description</code>。 </li>
</ul>
<h2 id="-">参考及更多</h2>
<ul>
<li><a href="http://yangjian.me/workspace/building-blog-with-hexo/" target="_blank">http://yangjian.me/workspace/building-blog-with-hexo/</a></li>
<li><a href="http://zespia.tw/hexo/" target="_blank">http://zespia.tw/hexo/</a></li>
<li><a href="http://zipperary.com/2013/05/28/hexo-guide-1/#more" target="_blank">http://zipperary.com/2013/05/28/hexo-guide-1/#more</a></li>
<li><a href="http://zipperary.com/2013/05/28/hexo-guide-2/" target="_blank">http://zipperary.com/2013/05/28/hexo-guide-2/</a> </li>
</ul>
]]></content>
<summary type="html"><![CDATA[<h2 id="-hexo">关于hexo</h2>
<p><a href="http://zespia.tw/hexo/" target="_blank">hexo</a>是一个基于Node.js的静态博客程序,可以方便的生成静态网页托管在github和Heroku上。作者是来自台湾的@tommy351。]]></summary>
<category term="hexo" scheme="http://yoursite.com/tags/hexo/"/>
</entry>
</feed>