테마 설치
설치
Hugo와 Node.js 설치
Hyas와 Doks 템플릿을 사용하여 프로젝트 생성
npm create hyas@latest Aprofl_Hugo -- --template doks
cd DocFlow_Hugo
프로젝트의 의존성 설치
npm install
개발 서버 시작
hugo server
D:\Obsidian\DocFlow_Hugo>hugo server
Watching for changes in D:\Obsidian\DocFlow_Hugo\{assets,content,layouts,node_modules,package.json,static}
Watching for config changes in D:\Obsidian\DocFlow_Hugo\config\_default, D:\Obsidian\DocFlow_Hugo\config\_default\menus
Start building sites …
hugo v0.127.0-74e0f3bd63c51f3c7a0f07a7c779eec9e922957e+extended windows/amd64 BuildDate=2024-06-05T10:27:59Z VendorInfo=gohugoio
| EN
-------------------+-----
Pages | 29
Paginator pages | 0
Non-page files | 0
Static files | 13
Processed images | 4
Aliases | 4
Cleaned | 0
Built in 438 ms
Environment: "development"
Serving pages from disk
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
- 웹 브라우저에서
http://localhost:1313
을 열어 Doks 템플릿이 적용된 사이트를 확인할 수 있습니다.
설정
content 폴더에 md 파일을 채웁니다. 중요한 점은
- 폴더별
_index.md
파일이 있어야 합니다.- 파일 자동 추가 방법 참조
_index.md
파일을 포함하여 모든 파일에는 메타데이터 가 있어야 합니다.