一个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

##使用/安装

  1. 安装防护罩

    ^{tt1}$

  2. 启动新的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.

  3. 创建文章或页面

    做第一篇博客文章:

    `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/)

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java爬虫获取外部网站搜索结果   java Bluestack未连接到eclipse   java如何从ConstraintViolationException Hibernamte获取数据库字段名   HttpResponse HttpResponse=httpClient引发java运行时错误。执行(httpPost);   Jama中矩阵的java点积和叉积   java有什么方法可以唯一地识别可扩展设备吗?   java我需要用*来写我的名字,但我不断遇到一个错误,我对编码很陌生   java变量是在内部类中访问的。需要被宣布为最终决定。但我不想宣布最终结果   java如何缩短base64图像字符串,Android?   JavaSpringMVC:计划方法不自动触发   图形学习Java 2D API的好资源是什么?   如何在java中对方法进行排队   java JavaFX多行   java Selenium无法在[链接]上找到基于CSS元素的密码字段元素http://www.cartasi.it/gtwpages/index.jsp   Java中的equals()和hashCode()契约   软删除情况下的java Hibernate二级缓存   java为什么这段代码要两次调用这些方法?