一个cli驱动的博客感知网站生成器。它的目的是使维护博客或个人网站变得简单,只需使用您最喜欢的控制台编辑器(如vim)和一些简单的命令
rant的Python项目详细描述
#咆哮
<;http://github.com/lrvick/rant>;
##关于
“rant”是一个用python编写的cli驱动的博客感知网站生成器。它是 旨在使维护博客或个人网站变得简单,仅使用您的 最喜欢的cli编辑器,比如vim和一些简单的命令。
被伟大的工程如:[jekyll](https://github.com/mojombo/jekyll)所感染, [鹈鹕](https://github.com/ametaireau/pelican) 和[goldbarg](https://github.com/Schnouki/Golbarg)
##当前功能
- Simple post/page authoring as markdown text files
- sitemap.xml support
- RSS / Atom support
- Full jinja2 templating integration
- Pagination
- Pygments syntax hilighting
- Disqus commenting integration in default templates
- Other stuff
##要求
- Python 2.7+
- pip
- libyaml
- jinja2
- pygments
##使用/安装
安装防护罩
^{tt1}$
启动新的RANT项目
Create a folder where you intend your site to live and initialize rant.
^{tt2}$
This will populate the folder with the basic rant project ready to add posts to.
创建文章或页面
做第一篇博客文章:
`bash rant publish `
这将打开默认的$editor,模板如下:
`bash --- layout: post title: date: 2011-09-23 02:45 image: tags: comments: true draft: false --- `
根据需要填写顶部[yaml](http://yaml.org/)块,然后添加 你的帖子在“-”下面 [标记](http://daringfireball.net/projects/markdown/)格式。
保存时,它将自动生成页面所需的任何html 根据“layouts/post.html”中的“post”模板。
要在将来编辑文章,只需编辑它并重新生成。
`bash vim posts/201109230245-My_neat_blog_post.md rant generate `
从这里您还可以修改/static中找到的任何媒体,或编辑 “layouts”中的任何[jinja2](http://jinja.pocoo.org/)布局 你喜欢的。
快乐的咆哮:—)
##注释
Use at your own risk. You may be eaten by a grue.
Questions/Comments?
You can find me on the web via:
[Email](mailto://lance@lrvick.net) | [Blog](http://lrvick.net) | [Twitter](http://twitter.com/lrvick) | [Facebook](http://facebook.com/lrvick) | [Google+](http://plus.google.com/109278148620470841006) | [YouTube](http://youtube.com/lrvick) | [Last.fm](http://last.fm/user/lrvick) | [LinkedIn](http://linkedin.com/in/lrvick) | [Github](http://github.com/lrvick/)