deploy


title: "HUGO"
date: 2019-10-17T20:53:32-04:00
draft: false

HUGO

create a new site

hugo new site me

install theme

go here minimal and follow the instructions:

git submodule add https://github.com/calintat/minimal.git themes/minimal
git submodule init
git submodule update
git submodule update --remote themes/minimal
cp themes/minimal/exampleSite/config.toml 

in the file config.toml set all your params, and:

baseurl = "http://examplesite" <- Change to https://yourgithubusername.github.io

push on your github

On branch master you have the public folder (built version)
And on the hugo branch you put the hugo project

Checkout the hugo branch

hugo serve -> to test localy
hugo -d ../blablanumerodeux.github.io/ -> to build the static version in the folder blablanumerodeux.github.io

blablanumerodeux.github.io folder is used to push the public folder (wich contains the static version of the website) without the hugo files (we could have make 2 different repos and a submodule)

git push origin master -u
git push origin hugo -u

some good themes:

https://themes.gohugo.io/hugo-coder/
https://themes.gohugo.io/minimal/

sources:

https://dev.to/michalbryxi/simplify-pushing-to-git-32g6
https://dev.to/dgavlock/creating-a-hugo-site-on-github-pages-3cjo
https://themes.gohugo.io/minimal/
https://github.com/calintat/minimal/
https://gohugo.io/hosting-and-deployment/hosting-on-github/
https://gohugo.io/hosting-and-deployment/hosting-on-github/#use-a-custom-domain
https://themes.gohugo.io//theme/minimal/post/

circleci git

circleci ssh key

hugo docker image

inspiration

https://tomlicha.github.io/
https://github.com/tomlicha/tomlicha.github.io