octopress

Octopress --> Heroku error env: bundle: no such file or directory

允我心安 提交于 2019-12-08 06:17:26
问题 I have an Octopress blog running on Heroku using a buildpack (https://github.com/jgarber/heroku-buildpack-ruby-octopress). It was working fine up until a few days ago, when I started getting the error below on deployment (everything works fine on local). I reverted to a working git and tried to deploy again but no dice. env: bundle: no such file or directory error. Here is the deployment log -----> Deleting 0 files matching .slugignore patterns. -----> Fetching custom git buildpack... done --

How to speed up Jekyll/Octopress generation?

非 Y 不嫁゛ 提交于 2019-12-06 23:49:29
问题 I'm using Octopress as my blog engine. It's perfect. But if there are many posts, for example 400+ posts, the speed of generation is soooo slow. So, is there any way to speed up Jekyll/Octopress generation? Thanks. 回答1: Obviously if you are just working on one post, there is no need to wait for the entire site to generate. What you are looking for is the rake isolate[partial_post_name] task. Using rake isolate , you can “isolate” only that post you are working on and move all the others to

Octopress --> Heroku error env: bundle: no such file or directory

亡梦爱人 提交于 2019-12-06 20:38:27
I have an Octopress blog running on Heroku using a buildpack ( https://github.com/jgarber/heroku-buildpack-ruby-octopress ). It was working fine up until a few days ago, when I started getting the error below on deployment (everything works fine on local). I reverted to a working git and tried to deploy again but no dice. env: bundle: no such file or directory error. Here is the deployment log -----> Deleting 0 files matching .slugignore patterns. -----> Fetching custom git buildpack... done -----> Octopress app detected -----> Using Ruby version: ruby-2.0.0 -----> Installing dependencies

Octopress博客搭建和个性化配置

随声附和 提交于 2019-12-05 14:30:51
Attention:oschina的博客系统貌似不支持markdown写作,本博文原版请访问 这里 。 使用octopress搭建博客的人,大概都会喜欢写关于如何搭建配置octopress的文章。因为它的高定制性,为极客们带来很多乐趣。从首页的配置,到分类,评论,个人信息,社会化分享等的配置,内容繁多。而且这是我第二次搭建octopress环境了,发现上一次的配置有一部分不能clone到本机上。因此,把配置的过程记录下来是十分有必要的。 我的意愿是记录配置的过程,顺便整理大牛们关于这方面的一些说明。网络上相关资料有很多,没有实践过的没有摘录在这里。所有的代码实现都是直接引用前辈们的。另外,本博的配置环境是linux fedora 18. octopress官方网站 octopress的配置都可以在官网上找到。事实上,遇到问题查询官网文档是最有效率的方法。 github的设置 创建仓库 登陆github网站,注册一个用户,假设为grunmin。 创建一个仓库,命名为username.github.com,例如grunmin.github.com 使用密钥登陆github [[ -f ~/.ssh/id_rsa.pub ]] || ssh-keygen -t rsa #生成密钥对 按默认一直确认即可。 在github帐号设置里找到ssh的设置,添加一个ssh key。 进入~/.ssh

How to speed up Jekyll/Octopress generation?

回眸只為那壹抹淺笑 提交于 2019-12-05 03:56:19
I'm using Octopress as my blog engine. It's perfect. But if there are many posts, for example 400+ posts, the speed of generation is soooo slow. So, is there any way to speed up Jekyll/Octopress generation? Thanks. Obviously if you are just working on one post, there is no need to wait for the entire site to generate. What you are looking for is the rake isolate[partial_post_name] task. Using rake isolate , you can “isolate” only that post you are working on and move all the others to the source/_stash folder. The partial_post_name parameter is just some words in the file name for the post.

Ubuntu上使用octopress+github建立个人博客

萝らか妹 提交于 2019-12-04 17:42:04
(转载本文时请表明原文链接: http://fzyz999.github.io/blog/2013/04/10/ubuntushang-shi-yong-octopressjian-li-bo-ke/,顺便欢迎有兴趣的朋友看看我的github博客:http://fzyz999.github.io ) 关于本文   初用octopress,感觉很适合我。不许要操心管理网站的问题,也不会受到广告等等的烦恼。关于octopress的中文资料不多,我就尝试尝试把octopress的文档整理翻译一下。本文并非是文档的正式翻译,只是单纯介绍一下Ubuntu上使用octopress+github建立个人博客的基本流程,部分内容为方便就直接翻译了原文。如果有误,欢迎指正。   我的操作系统是Ubuntu 12.10,octopress版本是2.0 关于github github是一个全球性的代码托管平台,支持github Pages服务。这个服务可以为个人、组织或项目建立静态主页。github为用户提供项目托管、git、pages等用于项目开发的功能。我们使用的就是其pages服务。相对于其他提供免费博客的网站,github的最大优点是无任何广告且提供git版本管理工具对博客进行管理。但劣势是需要一定的命令行操作,对于普通用户有一定门槛。也因此,octopress

如何使用octopress插件同步博文到OSChina上?

允我心安 提交于 2019-12-04 17:41:54
(转载请注明原文链接: http://fzyz999.github.io/blog/2013/05/06/ru-he-shi-yong-octopresscha-jian-tong-bu-bo-wen-dao-oschinashang/ ) #序 使用Octopress写播客固然方便,但每篇博客手工发布到自己所写的各个博客上未免有些太麻烦了。比如我目前就同步更新着OSChina上的博客和我利用Github Pages+Octopress建立的 http://fzyz999.github.io/这个博客。虽然均使用markdown,但有一些地方还是不完全一样的。比如代码高亮什么的,原理不太相同。搜寻很久,终于发现了这个同步插件。 #步骤 http://huangbowen.net/blog/2013/04/14/octopress-plugin-to-sync-post/ 直接照这个步骤走就可以,相同的部分我就不再赘述了。 #遇到的问题 我使用的是Ubuntu 13.04系统,已经之前配置Octopress时已经使用apt安装了ruby和ruby-dev软件包。 我在执行 bundle install 时遇到错误: Installing nokogiri (1.5.9) with native extensions Gem::Installer:

如何自定义octopress主题

天涯浪子 提交于 2019-12-03 14:58:33
(转载本文时请表明原文链接: http://fzyz999.github.io/blog/2013/04/12/ru-he-zi-ding-yi-octopresszhu-ti/,顺便欢迎有兴趣的朋友看看我的github博客:http://fzyz999.github.io ) 小序   搜了搜使用octorpress的网站,发现包括本博客在内的很多博客都清一色地使用了默认主题,几乎未作任何修改。我本想搜一个现成的有创意的主题直接用,结果未能如愿。看来只能自己动手,丰衣足食了。   自定义主题最基本的能力要求是对html、css等一定了解,但很可惜,笔者并不满足这一要求,只能边尝试边查资料边学习。所以,如果翻译有误或者有知识性错误,请大家指正。 octopress主题和个性化   2.0版本的Octopress添加了 source/_includes/custom 目录。如果你的octopress没有这个目录,请升级到最新版本。这个目录很有用。目录结构如下: source/ _includes/ # 主布局部分 custom/ # 自定义网页页眉、页脚、导航栏、边侧栏、网页头部信息 asides/ # 边侧栏主题部分 post/ # 博文元数据、分享和评论部分 _layouts/ # 页面、博文、分类存档布局 修改导航栏 向主导航栏添加或删除链接,需要编辑/source/

How to get Markdown processed content in Jekyll tag plugin

眉间皱痕 提交于 2019-11-30 07:29:54
I'm working on a Jekyll tag plugin for my Octopress site to help me make a 'note' element. I just want to be able to highlight a piece of information on my blog as a side note, like this. The problem is, I can't figure out how to get the contents of this tag to be processed (i.e. Markdown or Textile). The above image is only achieved is I actually make my links with html code. Here is how it ends up turning out when I use markdown in the contents. In my post, I'm writing the contents of this like so. {% note %} This is the third post in my Start to Finish series. Last time I talked about [Git]

Failed to build gem native extension when install RedCloth-4.2.9 install Linux

时光毁灭记忆、已成空白 提交于 2019-11-29 20:43:54
I want to install Octopress in my computer. I try to do it like Octopress document. When I run bundle install I got error message An error occured while installing RedCloth (4.2.9), and Bundler cannot continue. Make sure that `gem install RedCloth -v '4.2.9'` succeeds before bundling. So, I run sudo gem install RedCloth -v '4.2.9' then, I got a error message again: ERROR: Error installing RedCloth: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rb /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError) from /usr/lib