Skip to content

dimMaryanto93/blogs

Repository files navigation

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 octopress

Membuat post baru

octopress new post 'New post'

output:

New post: _posts/2016-04-09-new-title.markdown

Membuat draft baru

octopress new draft 'new draft'

output

New draft: _drafts/new-draft.markdown

Publish draft to post

octopress publish _drafts/new-draft.markdown

output:

Published: _drafts/new-draft.markdown → _posts/2016-04-09-new-draft.markdown

Running local server

$ 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.

Running local server with drafts

$ 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.

Publish to github page

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