1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-19 04:35:31 -04:00

upgrade Hugo to v0.60.1 (new markdown parser)

This commit is contained in:
2019-12-01 21:21:11 -05:00
parent 67d212d4d1
commit e8bf1881c8
21 changed files with 184 additions and 113 deletions

View File

@@ -7,27 +7,17 @@
publish = "public"
[context.production.environment]
HUGO_VERSION = "0.59.1"
HUGO_VERSION = "0.60.1"
HUGO_ENV = "production"
[context.deploy-preview.environment]
HUGO_VERSION = "0.59.1"
HUGO_VERSION = "0.60.1"
HUGO_ENV = "development"
# The most important headers and redirects are specified in the _headers and
# _redirects files generated by Hugo. These are additional custom rules.
# Preload style.css on main site:
[[headers]]
for = "/"
[headers.values]
Link = "</style.css>; rel=preload; as=style"
[[headers]]
for = "/notes/*"
[headers.values]
Link = "</style.css>; rel=preload; as=style"
# Redirect default Netlify subdomain to primary domain:
[[redirects]]
from = "https://jakejarvis.netlify.com/*"
@@ -51,17 +41,23 @@
to = "https://jakejarvis.github.io/y2k/:splat"
status = 200
# Mirror iOS tracker files from GitHub Pages:
# Legacy GitHub Pages subdirectory behavior:
[[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
[[redirects]]
from = "/comp20/*"
to = "https://jakejarvis.github.io/comp20/:splat"
status = 200
[[redirects]]
from = "/awesome/*"
to = "https://jakejarvis.github.io/synonyms-for-awesome/:splat"
status = 200
# H A C K E R M A N ( ͡° ͜ʖ ͡°)
[[redirects]]
@@ -73,6 +69,10 @@
to = "/h4x0rz.gif"
status = 200
[[redirects]]
from = "*/login"
from = "/login"
to = "/h4x0rz.gif"
status = 200
[[redirects]]
from = "/login.php"
to = "/h4x0rz.gif"
status = 200