Jekyll Template (Membuat blog dengan mudah)
Install Ruby
Pertama anda harus install ruby di mesin anda installasinya bisa dilihat di sini kemudian install jekyll dan octopress melalui gem
gem install jekyll octopressMembuat post baru
octopress new post 'New post'output:
New post: _posts/2016-04-09-new-title.markdownMembuat draft baru
octopress new draft 'new draft'output
New draft: _drafts/new-draft.markdownPublish draft to post
octopress publish _drafts/new-draft.markdownoutput:
Published: _drafts/new-draft.markdown → _posts/2016-04-09-new-draft.markdownRunning local server
$ jekyll serveoutput:
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.Running local server with drafts
$ jekyll serve --draftsoutput:
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.Publish to github page
git add . && git statu && git commit -m 'new post' && git push originoutput:
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