diff --git a/_redirects b/_redirects new file mode 100644 index 0000000..e6c1017 --- /dev/null +++ b/_redirects @@ -0,0 +1 @@ +/* /en/404.html 404 \ No newline at end of file diff --git a/exampleSite/config/development/server.toml b/exampleSite/config/development/server.toml new file mode 100644 index 0000000..49e5756 --- /dev/null +++ b/exampleSite/config/development/server.toml @@ -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 diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml index 304598c..ea24275 100755 --- a/exampleSite/hugo.toml +++ b/exampleSite/hugo.toml @@ -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 # default language defaultContentLanguage = 'en' -defaultContentLanguageInSubdir = false +defaultContentLanguageInSubdir = true ########################### Services ############################# [services] diff --git a/layouts/404.html b/layouts/404.en.html similarity index 100% rename from layouts/404.html rename to layouts/404.en.html diff --git a/package.json b/package.json index 93a0050..424b628 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "hugoplate", "description": "hugo tailwindcss boilerplate", - "version": "1.13.5", + "version": "1.13.6", "license": "MIT", "author": "zeon.studio", "scripts": { @@ -19,7 +19,7 @@ "format": "prettier -w ." }, "devDependencies": { - "@fullhuman/postcss-purgecss": "^6.0.0", + "@fullhuman/postcss-purgecss": "^5.0.0", "@tailwindcss/forms": "^0.5.7", "@tailwindcss/typography": "^0.5.12", "autoprefixer": "^10.4.19",