diff options
author | nodejh <jianghangscu@gmail.com> | 2021-08-21 18:03:38 +0300 |
---|---|---|
committer | nodejh <jianghangscu@gmail.com> | 2021-08-21 18:03:38 +0300 |
commit | 0912af8649dd51cc20f7cacc91ac02689c454ea8 (patch) | |
tree | 36f729963eca0dbad299cf656782f179cd8bcda5 /exampleSite | |
parent | 3cbfc0e484f2ba067826ee2a2d018da8d300745f (diff) |
feat: support multiple languages
Diffstat (limited to 'exampleSite')
-rw-r--r-- | exampleSite/config-example.yaml | 2 | ||||
-rw-r--r-- | exampleSite/config.yaml | 24 |
2 files changed, 9 insertions, 17 deletions
diff --git a/exampleSite/config-example.yaml b/exampleSite/config-example.yaml index 383b76f..00adc63 100644 --- a/exampleSite/config-example.yaml +++ b/exampleSite/config-example.yaml @@ -4,7 +4,7 @@ title: Hugo theme: hugo-theme-mini paginate: 3 -# for exampleSite only, you may need to delete the line: `themesDir: ../../` +# !!! exampleSite only, you may need to delete the line: `themesDir: ../../` themesDir: ../../ hasCJKLanguage: true diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index b5caf30..1854e16 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -3,7 +3,10 @@ languageCode: en-us title: Hugo theme: hugo-theme-mini -# for exampleSite only, you may need to delete the line: `themesDir: ../../` +# Default content language, support en (English) / zh (Chinese) / nl (Dutch), default 'en' +defaultContentLanguage: en + +# !!! exampleSite only, you may need to delete the line: `themesDir: ../../` themesDir: ../../ hasCJKLanguage: true @@ -14,7 +17,7 @@ googleAnalytics: your-google-analytics-id disqusShortname: your-disqus-shortname # Hugo Configure Markup -# more info: https://gohugo.io/getting-started/configuration-markup# +# More info: https://gohugo.io/getting-started/configuration-markup# markup: highlight: guessSyntax: true @@ -44,7 +47,7 @@ params: ########################################### - # Optional + # Optional Configuration ########################################### # To enable RSS, you could set `enableRSS: true`, default is `true` @@ -61,19 +64,8 @@ params: math: false # To hidden post summary in home page, you could set `hiddenPostSummaryInHomePage: true`, default is `false` hiddenPostSummaryInHomePage: false - - # text in page - home: '' # Default: Home - about: '' # Default: About - archive: '' # Default: Archive - tags: '' # Default: Tags - subscribe: '' # Default: Subscribe - olderPosts: '' # Default: Older Posts - newerPosts: '' # Default: Newer Posts - copyright: '' # Default: © Copyright 2021 ❤️ author - title404: '' # Default: 404 - Page Not Found - subtitle404: '' # Default: The content you're looking for doesn't seem to exist. - readMore: '' # Default: Read More + # Website copy write, default: '© Copyright 2021 ❤️ {params.author}' + copyright: '' # Extra links in navigation links: |