Created
October 31, 2019 01:02
-
-
Save jakejarvis/a302b0083dfbc425c9b1cf7c3773ecec to your computer and use it in GitHub Desktop.
hugo netlify _redirects _headers files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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