Hugo Tutorials
Publish date: Apr 28, 2021
hugo 블로그 만들기
(windows & cupper theme 기준)
-
choco install hugo -confirm (powershell 관리자로 실행 후)
-
hugo new site (블로그 파일 모아 놓을 폴더 이름) e.g. hugo new site blog
-
cd (블로그 파일 모아 놓을 폴더 이름) e.g. cd blog
-
git init
이 부분은 각자 쓰고 싶은 테마를 찾아볼것.여기서 -> git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git
themes/ananke -
hugo new posts/(쓰고싶은이름).md
-
터미널(powershell)에 hugo 엔터 누르면 markdown 으로 작성된 파일이 알아서 html,css,js 파일로 변환됨.
-
hugo server 로 테스트 가능.
-
이후 각자 편한 방식으로 업로드 e.g. 아이디.github.io repository 로 업로드하면 홈페이지 완성!
-
config.toml 은 중요하기때문에 따로 포스팅 하도록 하겠음.