【发布时间】:2013-08-30 09:56:09
【问题描述】:
我最近开始从 Jekyll(基于 Rails 的框架)迁移到 Django,我才刚刚开始。
我试图找出 _config.yml(如果有的话)在 django 中的等价物。对于没有 Jekyll 背景的人来说,_config.yml 看起来有点像这样:
# ----------------------- #
# Main Configs #
# ----------------------- #
markdown: rdiscount
pygments: true
permalink: /posts/:title
rdiscount:
extensions: [smart]
url: http://foo.bar
title: ./derp
subtitle: My code
author: Foo Bar
simple_search: http://google.com/search
description:
这样的作用是不用一遍遍地写页面标题、url等...
谢谢!
【问题讨论】:
标签: python django web-applications jekyll code-reuse