-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
63 lines (59 loc) · 1.24 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
# Plugins
[[plugins]]
package = "netlify-plugin-a11y"
[[plugins]]
package = "netlify-plugin-html-validate"
[[plugins]]
package = "netlify-plugin-checklinks"
[plugins.inputs]
skipPatterns = [
'/feed',
'/articles/feed',
'/drawings/feed',
]
# Redirects actual feed URLs to vanity ones.
[[redirects]]
from = '/feeds/all.xml'
to = '/feed'
force = true
status = 301
[[redirects]]
from = '/feeds/articles.xml'
to = '/articles/feed'
force = true
status = 301
[[redirects]]
from = '/feeds/drawings.xml'
to = '/drawings/feed'
force = true
status = 301
# Serves feed content from vanity feed URLs
[[redirects]]
from = '/feed'
to = '/feeds/all.xml'
force = true
status = 200
[[redirects]]
from = '/articles/feed'
to = '/feeds/articles.xml'
force = true
status = 200
[[redirects]]
from = '/drawings/feed'
to = '/feeds/drawings.xml'
force = true
status = 200
# Mastodon
[[redirects]]
from = '/.well-known/webfinger'
to = 'https://m.marchbox.com/.well-known/webfinger'
force = true
status = 301
[redirects.headers]
Access-Control-Allow-Origin = '*'
# Keep old URLs alive.
[[redirects]]
from = '/drawings/american-chavez'
to = '/drawings/america-chavez'
force = true
status = 301