-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
98 lines (79 loc) · 2 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#---
#COMMENT: Use the netlify.toml file stored at /static folder
#---
[build]
command = "hugo --gc --minify -b $URL"
publish = "public"
[build.environment]
HUGO_VERSION = "0.72.0"
HUGO_ENABLEGITINFO = "true"
[context.production.environment]
HUGO_ENV = "production"
[context.deploy-preview]
command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
[context.branch-deploy]
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
[[headers]]
for = "*.webmanifest"
[headers.values]
Content-Type = "application/manifest+json; charset=UTF-8"
[[headers]]
for = "index.xml"
[headers.values]
Content-Type = "application/rss+xml"
# ==========
# REDIRECCIONES DE DOMINIOS
# ==========
[[redirects]]
from = "https://albertlg.netlify.com/*"
to = "https://albertlg.com/:splat"
status = 301
force = true #COMMENT: ensure that we always redirect
[[redirects]]
from = "https://blog.albertlg.com/*"
to = "https://albertlg.com/:splat"
status = 301
force = true #COMMENT: ensure that we always redirect
[[redirects]]
from = "/blog"
to = "https://albertlg.com/"
status = 301
force = true #COMMENT: ensure that we always redirect
[[redirects]]
from = "/blog/*"
to = "https://albertlg.com/"
status = 301
force = true #COMMENT: ensure that we always redirect
# ==========
# REDIRECCIONES ESPECÍFICAS
# ==========
[[redirects]]
from = "/ca/tricefalia-reflexiones-esponja-1181188/"
to = "/ca/tricefalia-reflexions-esponja/"
status = 301
force = false
[[redirects]]
from = "/ca/software-al-vino-351701/"
to = "/ca/del-software-al-vi/"
status = 301
force = false
#[[redirects]]
# from = ""
# to = ""
# status = 301
# force = false
[[redirects]]
from = "/en/tricefalia-reflexiones-esponja-1181188/"
to = "/en/tricefalia-reflections-sponge/"
status = 301
force = false
[[redirects]]
from = "/en/software-al-vino-351701/"
to = "/en/from-software-to-wine/"
status = 301
force = false
#[[redirects]]
# from = ""
# to = ""
# status = 301
# force = false