Octoprosing
Promotes eventual consistency by integrating Octopress and Prose.io
Octoprosing provides a quick way to implement a 'Fork me' button to your posts.
Installation
Add this line to your Octopress blog's Gemfile:
group :development
gem 'octoprosing'
end
And then execute:
$ bundle
Configuration
Add the following configuration to your '_config.yml':
# Octoprose settings
octoprose:
editor: http://prose.io
github_repo: user/repo
github_branch: branch # it's usually 'source' if you deploy to github pages
And then copy the default include file and the loader plugin
$ cd your/blog/root/path
$ curl https://raw.github.com/juniorz/octoprosing/master/includes/fork_me.html -o source/_includes/fork_me.html
$ curl https://raw.github.com/juniorz/octoprosing/master/includes/octoprosing.rb -o plugins/octoprosing.rb
Finally, add the include wherever you want to display the 'Fork me' link.
I've added it to source/_includes/article.html
, just after the post's date:
{% include post/date.html %}{{ time }}
{% include fork_me.html %}
If you want to customize the link, just edit the file source/_includes/fork_me.html
.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request