Home
Welcome to Haki Blog
Step 1. Install Hugo
MAC OS
brew install hugo
Step 2. Create A Project
hugo new site myblog
Step 3. Add Themes
cd myblog
git init
git submodule add https://github.com/zwbetz-gh/cupper-hugo-theme.git themes/cupper-hugo-theme
cp theme/cupper-hugo-theme/exampleSite/config.toml config.toml
Copy folders and files in themes/cupper-hugo-theme/exampleSite/content to root content
Step 4. Run
hugo server
Step 4. Upload to Github Pages
Create two repositories: hugo-blog and blog
In myblog path
git remote add origin https://github.com/hugo-blog
vim .gitignore
Insert public/ to .gitignore file
git add .
git commit -m "initial commit"
git push origin master
cd ..
git clone git remote add origin https://github.com/blog
cd myblog
hugo -d ../blog
cd ..
cd blog
git add .
git commit -m "initial commit"
git push origin master
Step 5. Have fun
The best way to learn something is to play with it.