Skip to content

Instantly share code, notes, and snippets.

@iani
Created December 10, 2018 13:22
Show Gist options
  • Select an option

  • Save iani/2eaba7a4df6bc0b5136a206f9552423e to your computer and use it in GitHub Desktop.

Select an option

Save iani/2eaba7a4df6bc0b5136a206f9552423e to your computer and use it in GitHub Desktop.
configure hugo for github etc.
# Beginning of config file. Comments describe purpose.
# baseURL = "/"
# deploying on github
baseURL = "https://iani.github.io/compmus-class"
# alternative for other base urls, as command to compile with custom url:
# hugo -b "https://iani.github.io/compmus-class"
# see: -b, --baseURL string hostname (and path) to the root, e.g. http://spf13.com/
# at: https://gohugo.io/commands/hugo/
# relativeURLS = true
canonifyurls = true # This fixes urls. Without it, links to style or pages are broken.
publishDir = "docs" # render to docs dir, which is used by github pages
languageCode = "en-US"
defaultContentLanguage = "en"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment