Hugo - Fast and flexible Static Site Generator written in Go
2022.09.08 - ๋งํฌ ์์ , ์คํ ์์ Install ubuntu ์์ ํจํค์ง๋ก ์ค์น $ sudo apt install hugo $ hugo version Create a New SIte $ hugo new site my_site -f yml Add a Theme ์ค์น์ ์ค์ ์ ๋ํ ์์ธํ ์ฌํญ์ hugo papermod๋ฅผ ์ฐธ๊ณ . PaperMod ํ ๋ง ์ค์น $ cd my_site $ git clone https://github.com/adityatelange/hugo-PaperMod themes/PaperMod --depth=1 Update $ cd themes/PaperMod $ git pull Add theme set in config.yml $ echo 'theme: "PaperMod"' >> config.yml ๋๋ PaperMod ํ์ ๊ฐ์ config.yml์ ๋ณต์ฌํ๋ค. Sample Page ๋ง๋ค๊ธฐ --- title: "My 1st post" date: 2020-09-15T11:30:03+00:00 # weight: 1 # aliases: ["/first"] tags: ["first"] author: "Me" # author: ["Me", "You"] # multiple authors showToc: true TocOpen: false draft: false hidemeta: false comments: false description: "Desc Text." canonicalURL: "https://canonical.url/to/page" disableHLJS: true # to disable highlightjs disableShare: false disableHLJS: false hideSummary: false searchHidden: true ShowReadingTime: true ShowBreadCrumbs: true ShowPostNavLinks: true ShowWordCount: true ShowRssButtonInSectionTermList: true UseHugoToc: true cover: image: "<image path/url>" # image path/url alt: "<alt text>" # alt text caption: "<text>" # display caption under cover relative: false # when using page bundles set this to true hidden: true # only hide on current single page editPost: URL: "https://github.com/<path_to_repo>/content" Text: "Suggest Changes" # edit text appendFilePath: true # to append file path to Edit link --- ## This is sample Page Hello World! ํ์ด์ง ์์ฑ1: my_site/contents/sample.md๊ฐ ๋ค์ด๊ฐ๋ค. $ hugo new --kind post sample.md ํ์ด์ง ์์ฑ2: my_site/contents/posts/my-first-post.md๊ฐ ์์ฑ๋๋ค. $ hugo new posts/my-first-post.md LANGUAGE CODE ์ค์ my_site/langcode.yaml ์ ์ถ๊ฐํ๊ณ ์ค์ ํ๋ค. - id: prev_page translation: "Prev" - id: next_page translation: "Next" - id: read_time translation: one: "1 min" other: "{{ .Count }} min" - id: words translation: one: "word" other: "{{ .Count }} words" - id: toc translation: "Table of Contents" - id: translations translation: "Translations" - id: home translation: "Home" - id: edit_post translation: "Edit" - id: code_copy translation: "copy" - id: code_copied translation: "copied!" Start the Hugo Server ์๋์ ๊ฐ์ด ์๋ฒ๋ฅผ ์คํํ๊ณ ๋ธ๋ผ์ฐ์ ์์ http://localhost:1313 ์ผ๋ก ํ์ธ ์คํ ์์น๋ my_site/ ๋ด์์ ํด์ผํ๋ค. $ hugo server -D Links https://cristianpb.github.io/blog/vimwiki-hugo https://gohugo.io/getting-started/quick-start/ https://themes.gohugo.io/themes/hugo-papermod/