Hugo 사용하여 Github Pages 생성하기 (Mac)

Hugo 를 사용하여 Github Pages를 생성해 보자 (Mac 환경에서). 0 Prerequisites Go: package 다운로드후 설치 Hugo: brew install hugo 실행 Github account 생성 1 Github Pages Github에서 <username>.github.io 로 repository 생성 Terminal에서 hugo site 생성 후 위 repo와 연동 hugo new site <username>.github.io -f yml cd <username>.github.io git init git remote add origin git@github.com:<username>/<username>.github.io git branch -M main 제일 star이 많은 Hugo PaperMod theme 사용 git submodule add --depth=1 https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod git submodule update --init --recursive (추가) 지금 당장은 필요 없지만, 추후에 theme을 update하고 싶다면, 아래 명령어를 통해 가능하다:...

December 30, 2022