forked from themefisher/airspace-hugo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
27 lines (23 loc) · 707 Bytes
/
netlify.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
[build]
publish = "exampleSite/public"
command = "cd exampleSite && hugo --gc --themesDir ../.."
[build.environment]
HUGO_VERSION = "0.73.0"
HUGO_THEME = "repo"
HUGO_BASEURL = "/"
# 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