-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrss.xml
executable file
·13 lines (13 loc) · 3.06 KB
/
rss.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
<?xml version="1.0"?>
<rss version="2.0"> <channel>
<title>Blog Title</title>
<link>http://sample.com</link>
<pubDate>04 Oct 13 21:38 CST</pubDate>
<item>
<title>你的第一篇博客</title>
<link>http://sample.com/2013/new-born.html</link>
<pubDate>2013-02-08 12:00:00 +0800</pubDate>
<description><h1>感谢你使用Gor编写博客</h1>

<h2>本文位于 posts/first-blog.md , 你可以任意删掉,修改这个文件</h2>

<p>文件开头是当前文章的元数据</p>

<ol>
<li>date为自动生成, 当然,你可以修改,这是你的自由</li>
<li>permalink 可以是固定地址,也可以由gor为你自动生成</li>
<li>categories 就是分类, 可以多个</li>
<li>tags 同理,多个标签也是很常见的</li>
</ol>

<p>请确保文件使用UTF8 without BOM编码</p>

<h2>你可以通过执行下面的语句来新建一篇博客:</h2>

<pre><code>gor post 文章标题
</code></pre>

<h2>编译你的博客,并预览之</h2>

<pre><code>gor compile #编译
gor http
</code></pre>

<p>然后打开你的浏览器,访问 <a href="http://127.0.0.1:8080">http://127.0.0.1:8080</a> 来预览</p>

<h2>你将使用Markdown来编写博客</h2>

<p><a href="http://wowubuntu.com/markdown/">Markdown 语法中文版</a> 能让你快速入门其语法</p>

<p>相信<a href="http://markdownpad.com">MarkdownPad</a>或<a href="http://code.google.com/p/liteide/">liteide</a>会是你的编写博客的好帮手</p>

<h2>如果你打算部署到github的pages上</h2>

<ol>
<li>申请github帐户</li>
<li>新建一个库 username.github.com 即你的用户名命名的地址</li>
<li>将compiled目录,作为根路径,提交上去github.com上</li>
<li>稍等几分钟, 你即可通过 <a href="http://username.github.com">http://username.github.com</a> 访问到</li>
</ol>

<h2>附上git教程 <a href="http://gitbook.liuhui998.com/">GitBook中文版</a></h2>

<p>一般来说,你只需要几个简单的git命令就足以应付大部分需求(仅示例)</p>

<pre><code>git clone git://github.com/wendal/wendal.net.git
git add -A
git commit -m &quot;...&quot;
git pull
git push
</code></pre>

<h2>用gor编写博客将会是一件很开心的事,如果有任何意见或建议,欢迎到 <a href="http://github.com/wendal/gor">gor的官网</a> 提交issue</h2>

<h1>祝你使用愉快</h1>
</description>
</item>
</channel>
</rss>