Brooke's Notes

Experience, Record, Share.

Blog Writing With Octopress 3

| Comments

initialize workspace

1
2
3
4
5
  git clone git@github.com:Pro-YY/pro-yy.github.io.git -b source
  cd pro-yy.github.io/
  git clone git@github.com:Pro-YY/pro-yy.github.io.git -b master _deploy
  apt install ruby-bundler ruby-dev
  bundle install

write post

1
2
  rake new_post["Blog Writing with Octopress 3"]
  vim source/_posts/2015-07-15-blog-writing-with-octopress-3.markdown

preview

1
2
  rake generate
  rake preview

preview at http://localhost:4000

deploy

1
  rake deploy

commit source

1
2
  git commit -asm 'new post'
  git push

update octopress

1
2
3
4
5
  git remote add octopress git://github.com/imathis/octopress.git
  git pull octopress master
  bundle install
  rake update_source
  rake update_style

category list/cloud

plugin from https://github.com/alswl/octopress-category-list

Comments