1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-27 07:58:26 -04:00
jarv.is/netlify.toml
2019-11-18 08:27:18 -05:00

58 lines
1.3 KiB
TOML

# netlify.sh downloads Hugo fork and builds the site independently.
[build]
command = "./scripts/netlify-build.sh"
publish = "public"
# The most important headers and redirects are specified in the _headers and
# _redirects files generated by Hugo. These are additional custom rules.
# 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"
status = 301
[[redirects]]
from = "/rss"
to = "/index.xml"
status = 301
# Mirror Y2K site from GitHub Pages:
[[redirects]]
from = "/y2k/*"
to = "https://jakejarvis.github.io/y2k/:splat"
status = 200
# Mirror iOS tracker files from GitHub Pages:
[[redirects]]
from = "/ios-trackers/*"
to = "https://jakejarvis.github.io/ios-trackers/:splat"
status = 200
# Mirror Princeton curriculum site from GitHub Pages:
[[redirects]]
from = "/scrabble/*"
to = "https://jakejarvis.github.io/scrabble/:splat"
status = 200
# H A C K E R M A N ( ͡° ͜ʖ ͡°)
[[redirects]]
from = "*/wp-login.php"
to = "/h4x0rz.gif"
status = 200
[[redirects]]
from = "*/wp-admin/*"
to = "/h4x0rz.gif"
status = 200
[[redirects]]
from = "*/login"
to = "/h4x0rz.gif"
status = 200