Pertama anda harus install ruby di mesin anda installasinya bisa dilihat di sini kemudian install jekyll
dan octopress
melalui gem
gem install jekyll octopress
octopress new post 'New post'
output:
New post: _posts/2016-04-09-new-title.markdown
octopress new draft 'new draft'
output
New draft: _drafts/new-draft.markdown
octopress publish _drafts/new-draft.markdown
output:
Published: _drafts/new-draft.markdown → _posts/2016-04-09-new-draft.markdown
$ jekyll serve
output:
Configuration file: /home/dimMaryanto/workspace/dimmaryanto.github.io/_config.yml
Source: /home/dimMaryanto/workspace/dimmaryanto.github.io
Destination: /home/dimMaryanto/workspace/dimmaryanto.github.io/_site
Incremental build: disabled. Enable with --incremental
Generating...
done in 0.238 seconds.
Auto-regeneration: enabled for '/home/dimMaryanto/workspace/dimmaryanto.github.io'
Configuration file: /home/dimMaryanto/workspace/dimmaryanto.github.io/_config.yml
Server address: http://127.0.0.1:4000/
Server running... press ctrl-c to stop.
$ jekyll serve --drafts
output:
Configuration file: /home/dimMaryanto/workspace/dimmaryanto.github.io/_config.yml
Source: /home/dimMaryanto/workspace/dimmaryanto.github.io
Destination: /home/dimMaryanto/workspace/dimmaryanto.github.io/_site
Incremental build: disabled. Enable with --incremental
Generating...
done in 0.238 seconds.
Auto-regeneration: enabled for '/home/dimMaryanto/workspace/dimmaryanto.github.io'
Configuration file: /home/dimMaryanto/workspace/dimmaryanto.github.io/_config.yml
Server address: http://127.0.0.1:4000/
Server running... press ctrl-c to stop.
git add . && git statu && git commit -m 'new post' && git push origin
output:
On branch master
Your branch is up-to-date with 'origin/master'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
modified: README.md
new file: _posts/2016-04-09-new-draft.markdown