๐š†๐šŽ๐š‹

hugo ํ…Œ๋งˆ ์ ์šฉํ•˜๊ธฐ

ํ•ด๋ฒ„๋‹ˆ 2024. 9. 4. 20:43
๋ฐ˜์‘ํ˜•

์ด๋ฒˆ์—๋Š” hugo themes๋ฅผ ์ ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๊ฒ ๋‹ค

 

https://gethugothemes.com/free-hugo-themes

 

40+ Best Completely Free Hugo Themes For 2024

Explore our curated selection of clean, modern, and lightning-fast Hugo themes, perfect for building a stunning website without breaking the bank !

gethugothemes.com

+ ์›๋ž˜๋Š” ์œ ๋ฃŒ์ด์ง€๋งŒ ๋ฌด๋ฃŒ๋กœ ๋ช‡ ๊ฐœ ํ’€์–ด ๋†“์€ ํ…Œ๋งˆ๊ฐ€ ์žˆ๋‹ค

์—ฌ๊ธฐ์„œ๋„ ๋งˆ์Œ์— ๋“œ๋Š” ํ…Œ๋งˆ ์ฐพ์•„์„œ ํ•œ ๋ฒˆ ์ ์šฉํ•ด๋ณด์‹œ๊ธธ ๋ฐ”๋ž€๋‹ค

 

 

+ ํ…Œ๋งˆ๋งˆ๋‹ค ๊ตฌ์กฐ๊ฐ€ ๋‹ค๋ฅด๋‹ค. ํ…Œ๋งˆ์— ๋”ฐ๋ผ ์ถ”๊ฐ€์ ์ธ ํด๋”๊ฐ€ ์žˆ๊ฑฐ๋‚˜, ์ผ๋ถ€ ํด๋”์˜ ์œ„์น˜๋‚˜ ์ด๋ฆ„์ด ๋‹ค๋ฅผ ์ˆ˜๋„ ์žˆ๋‹ค.

+ ์„ค์ •์ด๋‚˜ ๋ฐ์ดํ„ฐ ๊ด€๋ฆฌ๋ฅผ ์œ„ํ•ด JSON ํŒŒ์ผ์„ ํฌํ•จํ•˜๋Š” ๊ฒƒ๋„ ์žˆ๊ณ , ์–ด๋–ค ํ…Œ๋งˆ๋Š” YAML ํ˜น์€ TOML ํ˜•์‹์˜ ํŒŒ์ผ๋งŒ ์‚ฌ์šฉํ•˜๋ฏ€๋กœ ํ…Œ๋งˆ ๊ตฌ์กฐ๋ฅผ ์ž˜ ์‚ดํŽด๋ด์•ผ ํ•œ๋‹ค. 

 

 

 

 

https://themes.gohugo.io/themes/tella/

 

Tella

Tella Tella, A Hugo theme for Companies. The demo can be seen here: https://tella.pages.dev Features Responsive Carousel Google Analytics Pagination Syntax Highlight Support categories Disqus Installation Method 1 Inside the folder of your Hugo site run: $

themes.gohugo.io

 

https://github.com/opera7133/tella?tab=readme-ov-file#install-dependencies

 

GitHub - opera7133/tella: Tella, A Hugo theme for Companies.

Tella, A Hugo theme for Companies. Contribute to opera7133/tella development by creating an account on GitHub.

github.com

 

 

์œ„ ํ…Œ๋งˆ๋ฅผ ์ ์šฉํ•ด๋ณด๋ ค๊ณ  ํ•œ๋‹ค.

 

 

 

 

1. ํ”„๋กœ์ ํŠธ ๋งŒ๋“ค๊ธฐ

hugo new site tella

 

 

 

 

 

 

2. ํ…Œ๋งˆ ๊ฐ€์ ธ์˜ค๋Š” ๋‘ ๊ฐ€์ง€ ๋ฐฉ๋ฒ•

 

ํ…Œ๋งˆ๋ฅผ ๋ณต์‚ฌํ•˜๋Š” ๋ฐฉ๋ฒ•์—๋Š” ๋‘ ๊ฐ€์ง€๊ฐ€ ์žˆ๋‹ค.

 

1๏ธโƒฃ

$ git clone https://github.com/opera7133/tella themes/tella

 

2๏ธโƒฃ

$ git submodule add https://github.com/opera7133/tella.git themes/tella

 

clone์ด๋‚˜ submodule๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋ณต์‚ฌํ•œ๋‹ค.

 

 

(์œ„ ๊ทธ๋ฆผ์€ tella ํœด๊ณ  ํ…Œ๋งˆ์˜ ๋ฌธ์„œ์ด๋‹ค.)

 

 

 

ํ…Œ๋งˆ ๋ณต์‚ฌํ•˜๊ธฐ

cd tella
git init
git submodule add https://github.com/opera7133/tella.git themes/tella

 

 

 

 

 

 

 

์—ฌ๊ธฐ์„œ ๋๋‚˜๋ฉด ์ข‹๊ฒ ์ง€๋งŒ,, ์—ฌ๊ธฐ์„œ ๋์ด ์•„๋‹ˆ๋‹ค

์ข…์†์„ฑ ์„ค์น˜

package.json, tailwind.config.js, postcss.congfig.js ํŒŒ์ผ์„ root ํด๋”๋กœ ์˜ฎ๊ธด ํ›„

npm install ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•˜๋ผ๊ณ  ๋‚˜์™€์žˆ๋‹ค.

 

 
themes/tella/exampleSite 
์— package.json, postcss.config.js, tailwind.config.js ๊ฐ€ ์กด์žฌํ•˜๋Š”๋ฐ ์œ„ ํŒŒ์ผ์„ ๋ฃจํŠธ ํด๋”๋กœ ๋ณต์‚ฌํ•ด์•ผ ํ•œ๋‹ค.
 

 

 

copy themes\tella\exampleSite\package.json c:\Hugo\project\tella
copy themes\tella\exampleSite\tailwind.config.js c:\Hugo\project\tella
copy themes\tella\exampleSite\postcss.config.js c:\Hugo\project\tella
cmd์—์„œ๋Š” ์ด๋ ‡๊ฒŒ ์ž‘์„ฑํ•˜๋ฉด ๋˜๊ณ , ๊ทธ๋ƒฅ ๋งˆ์šฐ์Šค๋กœ ๋ณต์‚ฌ ๋ถ™์—ฌ๋„ฃ๊ธฐ ํ•ด๋„ ๋œ๋‹ค
 
 
 
 
 
 
๊ทธ๋Ÿฌ๋ฉด ์ด๋ ‡๊ฒŒ ๋ฃจํŠธํด๋”์— ๋ณต์‚ฌ๊ฐ€ ๋œ๋‹ค! 
 
 
 

 

npm install

๋ฃจํŠธ ๋””๋ ‰ํ„ฐ๋ฆฌ์—์„œ npm install์„ ํ•ด์ค€๋‹ค. 

 

 

 

 

npm install ํ•˜๊ธฐ ์ „์—!

 

npm์„ ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” node.js๋ฅผ ์„ค์น˜ํ•ด์ค˜์•ผ ํ•œ๋‹ค. 

 

https://nodejs.org/en/download/prebuilt-installer

 

Node.js — Download Node.js®

Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.

nodejs.org

์œ„ ๋‹ค์šด๋กœ๋“œ ํŽ˜์ด์ง€์— ๊ฐ€์„œ ๋‹ค์šด๋กœ๋“œ๋ฅผ ๋ฐ›์•„์ค€๋‹ค.

๋‹ค ๊ธฐ๋ณธ์œผ๋กœ ๋‹ค์šด ๋ฐ›์•˜๋‹ค

 

๊ทธ๋ฆฌ๊ณ  cmd์ฐฝ์— ๋“ค์–ด๊ฐ€์„œ

node -v

๋ผ๊ณ  ์ž…๋ ฅํ–ˆ์„ ๋•Œ ๋ฒ„์ „ ์ •๋ณด๊ฐ€ ์ž˜ ๋‚˜์˜ค๋ฉด ์ œ๋Œ€๋กœ ์„ค์น˜๊ฐ€ ๋œ ๊ฒƒ์ด๋‹ค. 

 

 

 

 

 

 

hugo.toml ์„ค์ •

 

 

exampleSite > config.toml์— ์žˆ๋Š” ๋‚ด์šฉ์„ ๋ณต์‚ฌํ•˜์—ฌ

๋ฃจํŠธ ๋””๋ ‰ํ† ๋ฆฌ์— ์žˆ๋Š” hugo.toml์— ๋ถ™์—ฌ๋„ฃ๋Š”๋‹ค.

 

๋ฌธ์„œ์—๋Š” config.tomlํŒŒ์ผ์„ ๋ณต์‚ฌํ•ด์„œ ๋ฃจํŠธ์— ๋ถ™์—ฌ๋„ฃ๊ธฐ ํ•˜๋ผ๊ณ  ํ•˜๋Š”๋ฐ, ์ ์šฉ์ด ์ž˜ ์•ˆ๋ผ์„œ ๊ทธ๋ƒฅ hugo.toml์— ๋ถ™์—ฌ๋„ฃ์—ˆ๋”๋‹ˆ ์ž˜ ๋๋‹ค!

 

 

 

์—ฌ๊ธฐ๊นŒ์ง€ ์ €์žฅํ•˜๊ณ  

 

hugo server

๋ฅผ ํ•˜๋ฉด ์‹คํ–‰๋œ๋‹ค. 

 

์œ„์— ์ ‘์† ๊ฐ€๋Šฅํ•œ ๋งํฌ๊ฐ€ ๋œฌ๋‹ค (http://localhost:1313/) 

1313 ์‚ฌ์šฉ์ค‘์ด๋ฉด ๋‹ค๋ฅธ ํฌํŠธ ๋ฒˆํ˜ธ๊ฐ€ ๋œฐ ๊ฒƒ์ด๋‹ค. 

 

 

 

 

 

 

+ ํ…Œ๋งˆ์˜ ์˜ˆ์‹œ ๊ธ€, ๋ฐ์ดํ„ฐ๊ฐ€ ๋‹ค ๋ณด์ด๊ธธ ์›ํ•œ๋‹ค๋ฉด?

 

ํ•„์ž๋Š” ๋ฐ๋ชจ ์‚ฌ์ดํŠธ์ฒ˜๋Ÿผ ์‚ฌ์ง„๊ณผ ๊ธ€์ด ๋‹ค ๋ณด์˜€์œผ๋ฉด ํ–ˆ๋‹ค. 

๊ทธ๋ ‡๊ฒŒ ๋ณด์ด๊ฒŒ ํ•˜๋ ค๋ฉด exampleSite์— ์žˆ๋Š” ํŒŒ์ผ์„ ๋ฃจํŠธ ๋””๋ ‰ํ† ๋ฆฌ๋กœ ๋ณต์‚ฌํ•ด์™€์•ผ ํ•œ๋‹ค.

 

 

archetypes
content
data
static

์„ ๋ฃจํŠธ ๋””๋ ‰ํ† ๋ฆฌ๋กœ ๋ณต์‚ฌํ•ด์™”๋‹ค 

๊ธ€์— ํ•„์š”ํ•œ ๋ฐ์ดํ„ฐ๋ฅผ ๋ณต์‚ฌํ•ด ์˜จ ๊ฒƒ์ด๋‹ค. 

 

 

 

 

 

 

 

 

examplesite๋ฅผ ๋ณต์‚ฌํ•ด์™”๋”๋‹ˆ ์ด๋Ÿฐ์‹์œผ๋กœ ํ…Œ๋งˆ๊ฐ€ ์ž˜ ๋ณด์˜€๋‹ค.

์ด์ œ ๋‚ด๊ฐ€ ์›ํ•˜๋Š” ๋Œ€๋กœ ํ…Œ๋งˆ๋ฅผ ๊ฐ€๊ณตํ•ด์„œ ์‚ฌ์šฉํ•˜๋ฉด ๋œ๋‹ค. 

 

 

๋ฐ˜์‘ํ˜•