[re] Hello World
[re] Hello World by GitHub Pages & Hugo
install golang
$ brew install golang
install Hugoo
https://gohugo.io/installation/macos/
$ brew install hugo
github 저장소 생성
- duddns.github.io: GitHub Pages 저장소
- dontkr-hugo: Hogo 소스 저장소
Create a site
$ hugo new site dontkr-hugo
$ cd dontkr-hugo
$ git init
$ git submodule add -b master https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod
$ git submodule add -b main https://@github.com/duddns/duddns.github.io.git public
$ echo "theme = 'PaperMod'" >> hugo.toml
$ hugo server
configure
baseURL = 'https://dont.kr'
languageCode = 'en-us'
title = 'DoNT - Do Not Think!!!'
theme = 'PaperMod'
publish
GitHub Pages 저장소와 Hogo 소스 저장소 두 번 push 해야 함
$ hugo
$ cd public
$ git add .
$ git commit -m "commit message"
$ git push
$ cd ..
$ git add .
$ git commit -m "commit message"
$ git push