By Chee Leong
Install Hugo or if you have Golang setup,
go get -u -v github.com/spf13/hugo
Clone the project repository.
If you’ve obtained permission to write to the repository.
git clone --recursive [email protected]:golang-my/golang-my.github.io-hugo.git
Else you’ll have to fork the repository, remember to add
I prefer the fork method. :)
You can start this to preview the site. Any changes you made will be reflected.
The directory structure, for most the time, you only need to deal with
static(if images are involved).
Here’s an output of
$ tree -L 2 . ├── config.toml ├── content │ ├── home │ ├── post │ └── project ├── deploy.sh ├── LICENSE ├── Makefile ├── public ├── README.md ├── static │ └── img └── themes
To create a new post, we’ll be using
hugo new post/<title>.md
To know more, check Resources.
After you did all the editing and is satisfied with the results. Commit your changes, push and send us a pull request. We’ll do the moderation, merge and site generation.
To check for changes
Add files to be committed
git add <path>
Commit and push your changes
git commit git push
Thank you for your contribution.
To know more about the toolset and markups.
Please use the issue tracker to let me know about any bugs or feature requests, or alternatively make a pull request.
This blog post is referenced from https://github.com/gcushen/hugo-academic/blob/master/exampleSite/content/post/getting-started.md