feat: add multilingual mode support (#241)
BREAKING CHANGE: Layout file renamed ´layouts/partials/page-footer.html → layouts/partials/menu-nextprev.html`. If you use overrides, you might need to change the filenames as well.
This commit is contained in:
parent
42ebf067bb
commit
5c22ce57dc
88 changed files with 437 additions and 144 deletions
39
exampleSite/config/_default/config.yaml
Normal file
39
exampleSite/config/_default/config.yaml
Normal file
|
@ -0,0 +1,39 @@
|
|||
---
|
||||
baseURL: https://geekdocs.de/
|
||||
title: Geekdocs
|
||||
theme: hugo-geekdoc
|
||||
|
||||
pygmentsUseClasses: true
|
||||
pygmentsCodeFences: true
|
||||
timeout: 180000
|
||||
pluralizeListTitles: false
|
||||
|
||||
defaultContentLanguage: en
|
||||
|
||||
disablePathToLower: true
|
||||
enableGitInfo: true
|
||||
|
||||
enableRobotsTXT: true
|
||||
|
||||
markup:
|
||||
goldmark:
|
||||
renderer:
|
||||
unsafe: true
|
||||
tableOfContents:
|
||||
startLevel: 1
|
||||
endLevel: 9
|
||||
|
||||
taxonomies:
|
||||
tag: tags
|
||||
|
||||
outputs:
|
||||
home:
|
||||
- HTML
|
||||
page:
|
||||
- HTML
|
||||
section:
|
||||
- HTML
|
||||
taxonomy:
|
||||
- HTML
|
||||
term:
|
||||
- HTML
|
5
exampleSite/config/_default/languages.yaml
Normal file
5
exampleSite/config/_default/languages.yaml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
en:
|
||||
languageName: "English"
|
||||
contentDir: "content/en"
|
||||
weight: 10
|
15
exampleSite/config/_default/params.yaml
Normal file
15
exampleSite/config/_default/params.yaml
Normal file
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
geekdocToC: 3
|
||||
geekdocTagsToMenu: true
|
||||
|
||||
geekdocRepo: https://github.com/thegeeklab/hugo-geekdoc
|
||||
geekdocEditPath: edit/main/exampleSite/content
|
||||
|
||||
geekdocSearch: true
|
||||
geekdocSearchShowParent: true
|
||||
|
||||
geekdocLegalNotice: https://thegeeklab.de/legal-notice/#contact-information
|
||||
geekdocPrivacyPolicy: https://thegeeklab.de/legal-notice/#privacy-policy
|
||||
|
||||
geekdocImageLazyLoading: true
|
||||
geekdocDarkModeDim: true
|
Loading…
Add table
Add a link
Reference in a new issue