再见WordPress,您好rstblog!

Since having switched from the PHP world to the Python world about 2 years ago, I thought about relaunching my Blog using Python instead of PHP. At first, I thought about creating an application with Django and PostgreSQL, but never really had the time and motivation to finally implement it. But today I stumbled over rstblog by Armin Ronacher.

自大约2年前从PHP世界切换到Python世界以来,我考虑过使用Python而不是PHP重新启动Blog。 最初,我曾考虑过使用Django和PostgreSQL创建应用程序,但从未真正有时间和动力来最终实现它。 但是今天我偶然发现了Armin Ronacher的 rstblog

认识rstblog (Meet rstblog)

It is basically a static reStructuredText to HTML converter. You create a year/month/day folder structure, create .rst files in there, add metadata to them in YAML format and run the generator-script.

它基本上是一个静态reStructuredText到HTML的转换器。 您创建一个年/月/日文件夹结构,在其中创建.rst文件,以YAML格式向其中添加元数据,然后运行generator-script。

Because it’s static, you don’t need any dynamic webserver or interpreter, it’s just plain HTML files that you can serve practically everywhere. You can even track them using a source control system. And last but not least – you’ll never have to update your WordPress installation again, yay!

因为它是静态的,所以您不需要任何动态Web服务器或解释器,而只是纯HTML文件,您几乎可以在任何地方使用它。 您甚至可以使用源代码控制系统来跟踪它们。 最后但并非最不重要的一点–是,您无需再更新WordPress安装!

rstblog supports everything a blog needs: detail pages, archive pages, tags, atom feeds and comments (using Disqus). You can create custom stylesheets and templates.

rstblog支持博客所需的一切:详细信息页面,存档页面,标签,原子供稿和评论(使用Disqus )。 您可以创建自定义样式表和模板。

You can also embed syntax highlighted code using pygments:

您还可以使用pygments嵌入语法突出显示的代码:

 class class BarBar (( objectobject ):
    ):
    def def foofoo (( barbar ):
        ):
        print print 'I don'I don '' t like spam!'
t like spam!'

And LaTeX formulas:

LaTeX公式:

$$f(x) = a_0 + sum_{n=1}^{infty}left(a_n cos frac{n pi x}{L} + b_n sin frac{n pi x}{L}right)$$
$$ f(x)= a_0 + sum_ {n = 1} ^ {infty}左(a_n cos frac {n pi x} {L} + b_n sin frac {n pi x} {L} right)$$

There’s even more to like. If you want to know more, take a look at the repository and the sourcecode. That’s also one of the downsides – there’s no official documentation and the project seems pretty inactive, pull requests aren’t being merged.

还有更多喜欢的东西。 如果您想了解更多信息,请查看存储库和源代码 。 这也是缺点之一–没有官方文档,该项目似乎还很不活跃,并且请求请求没有被合并。

To get started, here are some related blogposts:

首先,这里是一些相关的博客文章:

发布内容 (Publishing Content)

To easily publish content, I use Fabric and rsync. Some easy fab tasks simplify the workflow:

为了轻松发布内容,我使用Fabricrsync 。 一些简单的晶圆厂任务可以简化工作流程:

You can see the entire fabfile on Github. The sitemaps are generated by gensitemap.py.

您可以在Github上看到整个fabfile。 站点地图由gensitemap.py生成。

By issueing a simple fab publish in the root directory, the following steps are taken:

通过在根目录中发布简单的fab发布 ,可以执行以下步骤:

  • The _build directory is (re)built
  • Sitemaps are generated for each .html file
  • CSS files are minified in-place
  • A timestamp is appended to all CSS file names to make browsers reload cached content
  • The _build directory is deployed to the server
  • The git repository is pushed to Github
  • _build目录被(重新)构建
  • 为每个.html文件生成站点地图
  • CSS文件就地缩小
  • 将时间戳附加到所有CSS文件名,以使浏览器重新加载缓存的内容
  • _build目录已部署到服务器
  • git存储库被推送到Github

这个博客 (This Blog)

Besides the blog-related technical details, this blog will from now on focus mostly on technical content, usually written in English, mostly about Python / Django / Linux / Programming related things.

除了与博客相关的技术细节之外,此博客从现在开始将主要侧重于技术内容,通常是用英语编写的,主要是关于Python / Django / Linux / Programming相关内容。

The blog repository is published on Github. Content is under a CC by-sa 3.0 license.

博客存储库发布在Github上 。 内容受CC by-sa 3.0许可。

翻译自: https://www.pybloggers.com/2012/06/goodbye-wordpress-hi-rstblog/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值