Skip to content

Commit 65c0771

Browse files
committed
docs: Hugo 블로그 운영 가이드 README.md 작성
1 parent 51934d7 commit 65c0771

1 file changed

Lines changed: 97 additions & 1 deletion

File tree

README.md

Lines changed: 97 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,99 @@
11
# 장태근블로그
22

3-
> Powered by **[gatsby-starter-hoodie](https://github.com/devHudi/gatsby-starter-hoodie)**
3+
- Hugo 기반으로 운영하는 개인 기술 블로그
4+
- [blowfish theme](https://github.com/nunocoracao/blowfish) 사용
5+
- 학습 기록과 실험, 시행착오
6+
7+
## Hugo 블로그 운영 가이드
8+
9+
- Hugo
10+
- Git
11+
12+
Hugo와 Git이 반드시 필요하다.
13+
14+
- 패키지 관리자 Homebrew를 사용하여 Hugo 설치
15+
16+
```shell
17+
brew install hugo
18+
```
19+
20+
### 기본 디렉터리 구조
21+
22+
```text
23+
config/_default/
24+
├─ hugo.toml
25+
├─ languages.ko.toml
26+
├─ markup.toml
27+
├─ menus.ko.toml
28+
├─ module.toml # if you installed using Hugo Modules
29+
└─ params.toml
30+
```
31+
32+
- `hugo.toml`: 사이트 설정 핵심 파일
33+
- `languages.ko.toml`: 언어별 설정 지원
34+
- `menus.ko.toml`: 언어별 메뉴 설정
35+
- `params.toml`
36+
- `colorSheme`: 테마 색상 변경
37+
- [Configuration](https://blowfish.page/docs/configuration/)
38+
39+
### 명령어
40+
41+
```shell
42+
hugo server
43+
```
44+
45+
- `draft`(초안) 제외
46+
- 배포 환경과 동일
47+
48+
```shell
49+
# hugo server --buildDrafts
50+
hugo server -D
51+
```
52+
53+
- `draft: true` 글 포함
54+
- 발행하기 전 초안 작성에 사용
55+
56+
### 글 작성
57+
58+
```shell
59+
# hugo new content posts/[게시글 디렉터리]/index.md
60+
hugo new content posts/retrospective-2026/index.md
61+
```
62+
63+
- 게시글 작성
64+
65+
#### Front Matter
66+
67+
**기본 템플릿**
68+
69+
```shell
70+
title: '게시글 제목'
71+
date: 2026-03-01
72+
categories: ["목차"]
73+
tags: ["태그1", "태그2"]
74+
draft: true
75+
```
76+
77+
- title: 게시글 제목
78+
- date: 게시글 작성 일자, `2026-03-01T00:00:00+09:00` 형태로 작성이 가능하나 생략 가능, Raycast Snippets 사용
79+
- categories: 목차
80+
- tags: 태그
81+
- draft: 초안, 발행 시 `false`로 변경 또는 생략 가능
82+
83+
**개인 설정**
84+
85+
- lastmod: 게시글 수정 날짜
86+
- series
87+
88+
### 배포
89+
90+
- GitHub Pages를 사용하여 배포 진행
91+
- GitHub main 브랜치에 `push` 하면 자동으로 작업 시작,
92+
- `.github/workflows/gh-pages.yml` -> `(결과) gh-pages 브랜치`
93+
- [Hosting & Deployment](https://blowfish.page/docs/hosting-deployment/)
94+
95+
### 테마 업데이트
96+
97+
```shell
98+
git submodule update --remote --merge
99+
```

0 commit comments

Comments
 (0)