On OS X, if you have Homebrew, just run:
$ brew update && brew install hugo
Clone repository
$ git clone [email protected]:orangeiceberg/orangeiceberg.com.git
$ cd orangeiceberg.com
$ mkdir static
$ hugo server
You can find your site on http://localhost:1313/
If you want to add new page eg.(promo.html) fallow this steps:
$ hugo new promo.md
In this step you create Markdown file inside content/promo.md
,
edit front matter inside promo.md
+++
date = "2016-02-14T16:11:58+05:30"
title = "Page Title"
type = "promo"
+++
Your text goes here.
Under the themes/oi/layouts
make directory promo
with file single.html
in it, and edit single.html
how you want, that is your layout for promo.md
.
Now you can find your page on http://localhost:1313/promo
.
After your pull request is merged to master:
$ ./bin/deploy
Note that the script will regenerate public dir from scratch. If there are changes to public dir that haven't been committed it will halt deployment and ask you to commit those changes first.