hugo

Quickstart Hugo Academic Theme

본 포스팅에서는 hugo-academic 테마를 이용하여 Github Page에 Publishing 하는 방법을 간단하게 다룹니다. $ hugo new site my-site $ cd my-site $ git init $ git submodule add https://github.com/gcushen/hugo-academic.git themes/academic $ cp -r themes/academic/exampleSite/. . $ # Test http://localhost:1313 $ hugo server -D # -b "192.168.0.2" --bind="0.0.0.0"

Hugo Templating

. Whitespace1 -는 whitespace를 제거해준다. without - <header class="list-header"> {{ with .Site.Params.headerSubtext }} <p class="list-header-subtext">{{ . }}</p> {{ end }} <h1 class="list-header-title">{{ .Title }}</h1> with - <header class="list-header"> {{- with .Site.Params.headerSubtext }} <p class="list-header-subtext">{{ . }}</p> {{ end -}} <h1 class="list-header-title">{{ .Title }}</h1> RESULT without: <header class="list-header"> <p class="list-header-subtext">K-Shield Jr. CM 2기&

Getting Started with Hugo

Step 1. Install Hugo Go to Hugo releases and download the appropriate version for your OS and architecture. Save it somewhere specific as we will be using it in the next step. More complete instructions are available at Install Hugo Step 2. Build the Docs Hugo has its own example site which happens to also be the documentation site you are reading right now. Follow the following steps: Clone the Hugo repository Go into the repo Run hugo in server mode and build the docs Open your browser to http://localhost:1313 Corresponding pseudo commands: