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/