Skip to content

Commit

Permalink
Setting up a basic multilingual content management system with goHugo
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Keul authored and karlgroves committed Mar 8, 2024
1 parent 46b33be commit 0e0a545
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
baseURL = 'https://overlayfactsheet.com/'
title = 'Overlay Fact Sheet'

# Site language. Available translations in the theme’s `/i18n` directory.
defaultContentLanguage = 'en'

# Renders the default content language in subdir, e.g. /. The root directory / will redirect to /
defaultContentLanguageInSubdir = 'true'

relativeURLs = 'true'

disableKinds = ['taxonomy', 'term']

[markup.goldmark.renderer]
unsafe = true

[outputs]
home = ['HTML']

[languages]
[languages.en]
contentDir = 'i18n/en'
weight = 1
[languages.en.params]
languageName = 'english'
languageNameShort = 'en'
[languages.fr]
contentDir = 'i18n/fr'
weight = 2
[languages.fr.params]
languageName = 'français'
languageNameShort = 'fr'

0 comments on commit 0e0a545

Please sign in to comment.