Skip to content

Instantly share code, notes, and snippets.

@jakejarvis
Created October 31, 2019 01:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakejarvis/a302b0083dfbc425c9b1cf7c3773ecec to your computer and use it in GitHub Desktop.
Save jakejarvis/a302b0083dfbc425c9b1cf7c3773ecec to your computer and use it in GitHub Desktop.
hugo netlify _redirects _headers files
# add redirects/headers
[outputs]
home = ["HTML", "RSS", "REDIRECTS", "HEADERS"]
# remove .{ext} from text/netlify
[mediaTypes."text/netlify"]
suffixes = [""]
delimiter = ""
# add output format for netlify _redirects
[outputFormats.REDIRECTS]
mediatype = "text/netlify"
baseName = "_redirects"
isPlainText = true
notAlternative = true
# add output format for netlify _headers
[outputFormats.HEADERS]
mediatype = "text/netlify"
baseName = "_headers"
isPlainText = true
notAlternative = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment