์ธ๋ฒ ์(Invesume) ๊ณต์ ์น์ฌ์ดํธ์ ๋๋ค. ์คํ์์ค ์ ๋ฌธ ๊ธฐ์ ์ผ๋ก์์ ํ์ฌ ์๊ฐ, ์ ํ & ์๋น์ค, ๊ณ ๊ฐ์ฌ ์ฌ๋ก, ๋ด์ค ๋ฑ์ ์ ๊ณตํฉ๋๋ค.
- Hugo: ์ ์ ์ฌ์ดํธ ์์ฑ๊ธฐ (v0.125+)
- Bootstrap 5: CSS ํ๋ ์์ํฌ
- Font Awesome 6: ์์ด์ฝ ๋ผ์ด๋ธ๋ฌ๋ฆฌ
- AOS: ์คํฌ๋กค ์ ๋๋ฉ์ด์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ
- Google Fonts: Noto Sans KR, Roboto
ivsteam.github.io/
โโโ assets/ # Hugo ํ์ดํ๋ผ์ธ์ฉ ์์ฐ
โโโ content/ # ์ฝํ
์ธ ํ์ผ (๋งํฌ๋ค์ด)
โ โโโ _index.md # ๋ฉ์ธ ํ์ด์ง (ํ๊ตญ์ด)
โ โโโ en/ # ์์ด ์ฝํ
์ธ
โ โโโ about/ # ํ์ฌ์๊ฐ
โ โโโ products/ # ์ ํ & ์๋น์ค
โ โโโ customers/ # ๊ณ ๊ฐ์ฌ
โ โโโ news/ # ๋ด์ค
โ โโโ contact/ # ์ฐ๋ฝ์ฒ
โโโ layouts/ # HTML ํ
ํ๋ฆฟ
โ โโโ _default/ # ๊ธฐ๋ณธ ํ
ํ๋ฆฟ
โ โโโ partials/ # ์ฌ์ฌ์ฉ ๊ฐ๋ฅํ ์ปดํฌ๋ํธ
โ โโโ products/ # ์ ํ ํ์ด์ง ํ
ํ๋ฆฟ
โโโ static/ # ์ ์ ํ์ผ
โ โโโ css/ # ์ปค์คํ
CSS
โ โโโ js/ # ์๋ฐ์คํฌ๋ฆฝํธ
โ โโโ img/ # ์ด๋ฏธ์ง
โ โโโ fonts/ # ํฐํธ
โโโ hugo.toml # Hugo ์ค์ ํ์ผ
โโโ README.md # ์ด ํ์ผ
# Hugo ๋ค์ด๋ก๋ ๋ฐ ์ค์น
wget https://github.com/gohugoio/hugo/releases/download/v0.125.0/hugo_extended_0.125.0_linux-amd64.deb
sudo dpkg -i hugo_extended_0.125.0_linux-amd64.deb
# ๋๋ snap์ผ๋ก ์ค์น
sudo snap install hugo# Homebrew๋ก ์ค์น
brew install hugo# Chocolatey๋ก ์ค์น
choco install hugo-extended
# ๋๋ Scoop์ผ๋ก ์ค์น
scoop install hugo-extended# ํ๋ก์ ํธ ๋๋ ํ ๋ฆฌ๋ก ์ด๋
cd /home/hamonikr/work/ivsteam.github.io
# Hugo ๊ฐ๋ฐ ์๋ฒ ์์
hugo server
# ๋๋ ํน์ ํฌํธ๋ก ์คํ
hugo server --port 1313
# ๋๋ ๋ชจ๋ ๋คํธ์ํฌ ์ธํฐํ์ด์ค์ ๋ฐ์ธ๋ฉ
hugo server --bind 0.0.0.0 --baseURL=http://your-ip:1313์๋ฒ๊ฐ ์์๋๋ฉด http://localhost:1313 ์์ ์น์ฌ์ดํธ๋ฅผ ํ์ธํ ์ ์์ต๋๋ค.
Hugo ๊ฐ๋ฐ ์๋ฒ๋ ์๋์ผ๋ก ํ์ผ ๋ณ๊ฒฝ์ ๊ฐ์งํ๊ณ ๋ธ๋ผ์ฐ์ ๋ฅผ ์๋ก๊ณ ์นจํฉ๋๋ค:
- ์ฝํ ์ธ ๋ณ๊ฒฝ ์ ์ฆ์ ๋ฐ์
- ํ ํ๋ฆฟ ๋ณ๊ฒฝ ์ ์ฆ์ ๋ฐ์
- CSS/JS ๋ณ๊ฒฝ ์ ์ฆ์ ๋ฐ์
# 1. ์ ๋ด์ค ํ์ผ ์์ฑ
hugo new news/์๋ก์ด-์์.md
# 2. ํ์ผ ํธ์ง (content/news/์๋ก์ด-์์.md)
---
title: "์๋ก์ด ์์ ์ ๋ชฉ"
date: 2025-04-10
draft: false
category: "๋ณด๋์๋ฃ"
description: "์์ฝ ์ค๋ช
"
image: "/img/news/news-image.jpg"
---
๋ด์ค ๋ด์ฉ์ ์ฌ๊ธฐ์ ์์ฑํฉ๋๋ค...- ์ ํ ๋ชฉ๋ก:
content/products/_index.md - ๊ฐ๋ณ ์ ํ:
content/products/ํด๋์ ๊ฐ ๋งํฌ๋ค์ด ํ์ผ - ์คํ์์ค ํ๋ก์ ํธ:
layouts/products/list.html์ ์คํ์์ค ์น์ ์์
์์ด ์ฝํ
์ธ ๋ content/en/ ํด๋์ ๊ด๋ฆฌํฉ๋๋ค:
content/
โโโ _index.md # ํ๊ตญ์ด ๋ฉ์ธ
โโโ en/
โ โโโ _index.md # ์์ด ๋ฉ์ธ
โ โโโ about.md # ์์ด ํ์ฌ์๊ฐ
โ โโโ products.md # ์์ด ์ ํ
static/css/custom.css์ CSS ๋ณ์ ์์ :
:root {
--primary-color: #081f19; /* ๋ฉ์ธ ์ปฌ๋ฌ */
--accent-color: #1a8f7a; /* ๊ฐ์กฐ ์ปฌ๋ฌ */
--success-color: #0d8a61; /* ์ฑ๊ณต ์ปฌ๋ฌ */
/* ... ๋ค๋ฅธ ๋ณ์๋ค */
}๋ชจ๋ ๋ฒํผ์ ์ฌ์ดํธ ์ปฌ๋ฌ๋ก ์๋ ์ ์ฉ๋ฉ๋๋ค (btn-primary, btn-outline-primary).
- ํ๊ตญ์ด:
layouts/index.html์{{ else }}์น์ - ์์ด:
layouts/index.html์{{ if eq .Lang "en" }}์น์
- ๊ณ ๊ฐ์ฌ:
layouts/_default/list.html์ customers ์น์ - ์ ํ:
layouts/products/list.html
- ํค๋/๋ค๋น๊ฒ์ด์
:
layouts/partials/header.html - ํธํฐ:
layouts/partials/footer.html
# ์ ์ ์ฌ์ดํธ ๋น๋
hugo
# ์ถ๋ ฅ: public/ ๋๋ ํ ๋ฆฌ# 1. ๋ณ๊ฒฝ์ฌํญ ์ปค๋ฐ
git add .
git commit -m "Update content"
# 2. ๋ฉ์ธ ๋ธ๋์น์ ํธ์
git push origin master
# 3. GitHub Actions๊ฐ ์๋์ผ๋ก ๋ฐฐํฌํฉ๋๋ค# public/ ๋๋ ํ ๋ฆฌ์ ๋ด์ฉ์ ์น ์๋ฒ์ ์
๋ก๋
# ์: rsync, scp, FTP ๋ฑ
rsync -avz public/ user@server:/var/www/html/-
์๊ฐ
- ๋ด์ค/์์ ์ ๋ฐ์ดํธ
- ์ฝํ ์ธ ๋งํฌ ํ์ธ
- ์ด๋ฏธ์ง ์ต์ ํ
-
๋ถ๊ธฐ๋ณ
- Hugo ๋ฒ์ ์ ๋ฐ์ดํธ ํ์ธ
- ์์กด์ฑ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ ๋ฐ์ดํธ (Bootstrap, AOS ๋ฑ)
- SEO ๋ฉํ๋ฐ์ดํฐ ๊ฒํ
-
์ฐ๊ฐ
- ๋์์ธ ํธ๋ ๋ ๋ฐ์ ๊ฒํ
- ์น์ฌ์ดํธ ์ฑ๋ฅ ์ต์ ํ
- ์ก์ธ์๋น๋ฆฌํฐ ์ ๊ฒ
- ๊ถ์ฅ ํฌ๊ธฐ: ์ต๋ 2000px ๋๋น
- ๊ถ์ฅ ํ์: JPG (์ฌ์ง), PNG (๋ก๊ณ /์์ด์ฝ), WebP (์ต์ ํ)
- ์ ์ฅ ์์น:
static/img/ํ์ ํด๋๋ณ ๋ถ๋ฅ
# ์ด๋ฏธ์ง ์ต์ ํ ์์ (ImageMagick ์ฌ์ฉ)
convert input.jpg -quality 85 -resize 1920x output.jpg๊ฐ ํ์ด์ง์ ๋ฉํ๋ฐ์ดํฐ ํ์ธ:
---
title: "ํ์ด์ง ์ ๋ชฉ"
description: "ํ์ด์ง ์ค๋ช
(150์ ์ด๋ด)"
keywords: ["ํค์๋1", "ํค์๋2"]
image: "/img/og-image.jpg"
---๋ฌธ์ : ๋ณ๊ฒฝ์ฌํญ์ด ๋ฐ์๋์ง ์์
# ํด๊ฒฐ: Hugo ์บ์ ์ญ์
rm -rf resources/
hugo server๋ฌธ์ : ๋น๋ ์คํจ
# ํด๊ฒฐ: ์์กด์ฑ ์ฌ์ค์น
hugo mod clean
hugo mod tidy๋ฌธ์ : ์คํ์ผ์ด ์ ์ฉ๋์ง ์์
# ํด๊ฒฐ: CSS ๋ฒ์ ๋ฒํธ ์
๋ฐ์ดํธ
# layouts/partials/header.html์์ ๋ฒ์ ๋ฒํธ ๋ณ๊ฒฝ
<link href="/css/custom.css?v=18" rel="stylesheet">๋ธ๋ผ์ฐ์ ๊ฐ๋ฐ์ ๋๊ตฌ(F12) ์ฌ์ฉ:
- ์ฝ์: JavaScript ์ค๋ฅ ํ์ธ
- ๋คํธ์ํฌ: ๋ฆฌ์์ค ๋ก๋ฉ ํ์ธ
- ์์: CSS ์คํ์ผ ๊ฒ์ฌ
- ์๋ก์ด ๋ธ๋์น ์์ฑ:
git checkout -b feature/your-feature - ๋ณ๊ฒฝ์ฌํญ ์ปค๋ฐ:
git commit -m "Add your feature" - ๋ธ๋์น ํธ์:
git push origin feature/your-feature - Pull Request ์์ฑ
์ด ํ๋ก์ ํธ๋ ์ธ๋ฒ ์(Invesume)์ ์์ฐ์ ๋๋ค.
- ์น์ฌ์ดํธ: https://invesume.com
- ์ด๋ฉ์ผ: hckim@invesume.com
- GitHub: https://github.com/ivsteam
๋ง์ง๋ง ์ ๋ฐ์ดํธ: 2025๋ 4์ 10์ผ