mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-19 04:55:30 -04:00
move to Netlify with native builds (#12)
This commit is contained in:
41
netlify.toml
Normal file
41
netlify.toml
Normal file
@@ -0,0 +1,41 @@
|
||||
# netlify.sh downloads my custom Hugo fork and builds the site independently.
|
||||
[build]
|
||||
command = "./scripts/netlify.sh"
|
||||
publish = "public"
|
||||
|
||||
|
||||
# The most important headers and redirects are specified in the _headers and
|
||||
# _redirects files generated by Hugo. These are additional custom redirects.
|
||||
|
||||
# Redirect default Netlify subdomain to primary domain:
|
||||
[[redirects]]
|
||||
from = "https://jakejarvis.netlify.com/*"
|
||||
to = "https://jarv.is/:splat"
|
||||
status = 301
|
||||
force = true
|
||||
|
||||
# Support ancient RSS subscriptions from WordPress era:
|
||||
[[redirects]]
|
||||
from = "/feed"
|
||||
to = "/index.xml"
|
||||
[[redirects]]
|
||||
from = "/rss"
|
||||
to = "/index.xml"
|
||||
|
||||
# Moved Y2K site to its own subdomain:
|
||||
[[redirects]]
|
||||
from = "/y2k/*"
|
||||
to = "https://y2k.jarv.is/:splat"
|
||||
status = 302
|
||||
|
||||
# Redirect iOS tracker files to their repo's GitHub Pages:
|
||||
[[redirects]]
|
||||
from = "/ios-trackers/*"
|
||||
to = "https://jakejarvis.github.io/ios-trackers/:splat"
|
||||
status = 200
|
||||
|
||||
# H A C K E R M A N
|
||||
[[redirects]]
|
||||
from = "/wp-login.php"
|
||||
to = "https://giphy.com/embed/RyXVu4ZW454IM"
|
||||
status = 302
|
Reference in New Issue
Block a user