Hugo ๋ธ๋ก๊ทธ ๋ง๋ค๊ธฐ
https://gohugo.io/getting-started/quick-start/
Quick start
Learn to create a Hugo site in minutes.
gohugo.io
ํ์๋ ์ ๋งํฌ๋ฅผ ํตํด Hugo ํ์ด์ง๋ฅผ ๋ง๋ค์ด๋ดค๋ค.
์ค๋น๋ฌผ
1. git ๋ค์ด๋ก๋ ๋งํฌ
Git - Downloads
Downloads macOS Windows Linux/Unix Older releases are available and the Git source repository is on GitHub. GUI Clients Git comes with built-in GUI tools (git-gui, gitk), but there are several third-party tools for users looking for a platform-specific exp
git-scm.com
๋ณธ์ธ์ด ์ฐ๋ ์ด์์ฒด์ ๋ฅผ ๊ณจ๋ผ์ ๋ค์ด ๋ฐ๋๋ค.
๋ญ ๋ค์ด ๋ฐ์์ผ ํ ์ง ๋ชจ๋ฅด๊ฒ ๋ค๋ฉด "Click here to download"๋ฅผ ๋๋ฌ์ ๋ค์ด ๋ฐ๋๋ค.
2. hugo ๋ค์ด๋ก๋ ๋งํฌ
https://github.com/gohugoio/hugo/releases
Releases · gohugoio/hugo
The world’s fastest framework for building websites. - gohugoio/hugo
github.com
๋ณธ์ธ์๊ฒ ๋ง๋ extended ํ์ผ์ ๋ค์ด ๋ฐ๋๋ค.
๋ค์ด๋ก๋ zip์ ์์ถํด์ ํด์ค๋ค.
C:\Hugo\bin ์ ์์ถํด์ ํด์ฃผ์๋ค.
ํ๊ฒฝ ๋ณ์ ์ค์
Window + Q ๋ฒํผ์ ๋๋ฌ "์์คํ ํ๊ฒฝ ๋ณ์ ํธ์ง" ์ ๊ฒ์ํด ํ๊ฒฝ ๋ณ์ ์ค์ ์ ์ด์ด์ค๋ค.
Path๋ฅผ ๋๋ฅด๊ณ ํธ์ง(E)์ ๋๋ฅธ๋ค.
์๋ก ๋ง๋ค๊ธฐ(N)์ ๋๋ฅด๊ณ C:\Hugo\bin ์ ์ ๋ ฅํด์ค๋ค.
๊ทธ๋ฆฌ๊ณ ๋์ cmd๋ฅผ ์คํํ ํ
hugo version
์ ์ ๋ ฅํ์ ๋ ๋ฒ์ ์ด ์ ๋์ค๋ฉด ํ๊ฒฝ ๋ณ์๊ฐ ์ ๋๋ก ์ค์ ์ด ๋ ๊ฒ์ด๋ค.
์ฌ์ดํธ ๋ง๋ค๊ธฐ
ํ๋ก์ ํธ๋ฅผ ๋ง๋ค ํด๋๋ฅผ ์์ฑํด์ฃผ์.
ํด๋น ํด๋์์ ๋ฐ ๋ช ๋ น์ด๋ฅผ ์คํํ ๊ฒ์ด๋ค.
hugo new site quickstart
cd quickstart
git init
git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke
echo "theme = 'ananke'" >> hugo.toml
hugo server
hugo new site quickstart(ํ๋ก์ ํธ๋ช )
ํ๋ก์ ํธ์ ๋ํ ๋๋ ํ ๋ฆฌ๋ฅผ ๋ง๋๋ ๋ช ๋ น์ด์ด๋ค.
์ ๋ช ๋ น์ด๋ฅผ ์คํํ๊ณ ํด๋์ ๋ค์ด๊ฐ๋ณด๋ฉด
์์ ๊ฐ์ ๊ตฌ์กฐ๊ฐ ์๊ฒจ๋ ๊ฑธ ๋ณผ ์ ์๋ค.
cd quickstart & git init & git submodule add [๋งํฌ]
cd quckstart : quckstartํด๋๋ก ์ด๋
git init : ์๋ก์ด Git ์ ์ฅ์(repository)๋ฅผ ์์ฑ
git submodule add [๋งํฌ] : ํ ๋ง ๋ณต์
Complete List
themes.gohugo.io
ํ ๋ง๋ ์ด๊ณณ์ ์ฌ๋ฌ๊ฐ์ง๊ฐ ์๋ค
hugo server
์๋ฒ ์คํ
๋ฉ์ถ๊ณ ์ถ๋ค๋ฉด Ctrl + c ๋ฒํผ์ ๋๋ฅด๋ฉด ๋๋ค.
localhost:1313 ์ ์ ์ํ๋ฉด ํ์ด์ง๊ฐ ์ฌ๋ผ๊ฐ ๊ฑธ ๋ณผ ์ ์๋ค!
๋ค์ ๊ธ์ ๊ธ์ ์ถ๊ฐํ๋ ๋ฐฉ๋ฒ์ ๋ํด์ ํฌ์คํ ํด๋ณด๊ฒ ๋ค.