[build] publish = "exampleSite/public" command = "cd exampleSite && hugo --gc --themesDir ../.." [build.environment] HUGO_VERSION = "0.87.0" HUGO_THEME = "repo" HUGO_BASEURL = "/" # German subpages 404 [[redirects]] from = "/de/*" to = "/de/404.html" status = 404 # French subpages 404 [[redirects]] from = "/fr/*" to = "/fr/404.html" status = 404 # Italian subpages 404 [[redirects]] from = "/it/*" to = "/it/404.html" status = 404 # all other pages 404 (incl. those in `defaultContentLanguage`) # NOTE that in case you've set `defaultContentLanguageInSubdir = true` in `config.toml`, you need to change the destination below to point to the `defaultContentLanguage` subdir, e.g. `to = "/en/404.html"` [[redirects]] from = "/*" to = "/404.html" status = 404