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/

2022-08-23 Β· (updated 2022-09-08) Β· 327 words