Octopress 3.0 – Jekyll 的法拉利
Octopress 是一个专注于设计的工具包,用于编写和部署 Jekyll 博客。不错吧?
手动安装 Octopress:
$ gem install octopress
或者,如果您使用 Bundler,请在 Gemfile 中添加以下一行:
gem 'octopress', '~> 3.0'
然后运行:
$ bundle
如果是新用户,请运行 gem install bundler,然后在站点根目录中创建名为 Gemfile 的文件,内容如下:
source 'https://rubygems.org'
gem 'octopress', '~> 3.0'运行 bundle 来安装 Gemfile 中指定的宝石。
Octopress 从 _config.yml 中读取配置。以下是默认配置的样子。
# Default extension for new posts and pages
post_ext: markdown
page_ext: html
# Default templates for posts and pages
# Found in _templates/
post_layout: post
page_layout: page
# Format titles with titlecase?
titlecase: true
# Change default template file (in _templates/)
post_template: post
page_template: page
draft_template: draft以下是 Octopress 的子命令。
| 选项 | 描述 |
|---|---|
--template PATH |
使用来自 的模板 |
--date DATE |
文章的日期。应可由 [Time#parse](http://ruby-doc.org/stdlib-2.1.0/libdoc/time/rdoc/Time.ht |
暂无开放 Issues,或尚未同步最近议题。