forked from themefisher/airspace-hugo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
33 lines (28 loc) · 798 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
28
29
30
31
32
33
[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