added support for multilingual 404 page redirects
This commit is contained in:
parent
5fada5e967
commit
f994a8b6e6
1
_redirects
Normal file
1
_redirects
Normal file
@ -0,0 +1 @@
|
|||||||
|
/* /en/404.html 404
|
13
exampleSite/config/development/server.toml
Normal file
13
exampleSite/config/development/server.toml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# defaultContentLanguageInSubdir must be true for this to work.
|
||||||
|
|
||||||
|
# Other languages redirects
|
||||||
|
# [[redirects]]
|
||||||
|
# from = '/fr/**'
|
||||||
|
# to = '/fr/404.html'
|
||||||
|
# status = 404
|
||||||
|
|
||||||
|
# Default language must be last.
|
||||||
|
[[redirects]]
|
||||||
|
from = '/**'
|
||||||
|
to = '/en/404.html'
|
||||||
|
status = 404
|
@ -17,7 +17,7 @@ disableLanguages = [
|
|||||||
hasCJKLanguage = false # If hasCJKLanguage true, auto-detect Chinese/Japanese/Korean Languages in the content. see: https://gohugo.io/getting-started/configuration/#hascjklanguage
|
hasCJKLanguage = false # If hasCJKLanguage true, auto-detect Chinese/Japanese/Korean Languages in the content. see: https://gohugo.io/getting-started/configuration/#hascjklanguage
|
||||||
# default language
|
# default language
|
||||||
defaultContentLanguage = 'en'
|
defaultContentLanguage = 'en'
|
||||||
defaultContentLanguageInSubdir = false
|
defaultContentLanguageInSubdir = true
|
||||||
|
|
||||||
########################### Services #############################
|
########################### Services #############################
|
||||||
[services]
|
[services]
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "hugoplate",
|
"name": "hugoplate",
|
||||||
"description": "hugo tailwindcss boilerplate",
|
"description": "hugo tailwindcss boilerplate",
|
||||||
"version": "1.13.5",
|
"version": "1.13.6",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"author": "zeon.studio",
|
"author": "zeon.studio",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@ -19,7 +19,7 @@
|
|||||||
"format": "prettier -w ."
|
"format": "prettier -w ."
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@fullhuman/postcss-purgecss": "^6.0.0",
|
"@fullhuman/postcss-purgecss": "^5.0.0",
|
||||||
"@tailwindcss/forms": "^0.5.7",
|
"@tailwindcss/forms": "^0.5.7",
|
||||||
"@tailwindcss/typography": "^0.5.12",
|
"@tailwindcss/typography": "^0.5.12",
|
||||||
"autoprefixer": "^10.4.19",
|
"autoprefixer": "^10.4.19",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user