Tag: octopress

为Octopress运行“rake install”时Rake中止了吗?

我想在我的Windows 8.1系统上构建Octopress。 我在C:\devKit安装了Ruby 2.0.0和DevKit,然后运行了gem install bundler和bundle install 。 它们运行成功,但是当我运行rake install ,我总是收到如下错误消息: rake aborted! cannot load such file — C:/Users/username/Documents/GitHub/octopress/Rakefile 我认为问题是我的用户名是中文,但是还有其他问题吗? 我已经尝试过bundle update或bundle exec rake install但它没有用。 我希望有一个人可以帮助我。

从Jekyll插件向页面添加属性

假设我想要一个包含这样内容的页面: {{page.comment_count}} Comment(s) {% for c in page.comment_list %} {{c.title}} {{c.content}} {% endfor %} 默认情况下,名为comment_count或comment_list的页面上没有变量; 相反,我希望将这些变量从Jekyll插件添加到页面中。 哪里是安全的地方我可以填充这些字段而不干扰Jekyll现有的代码? 或者有更好的方法来实现这样的评论列表?