mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2026-08-02 03:47:16 -05:00
WIP: finished implementation of Netlify _redirects
TBD will be caddy, not sure whether this is actually a good idea because including a Caddy file directly from GitHub Actions accessible job output might be a config injection risk.
This commit is contained in:
@@ -24,19 +24,19 @@ outputs:
|
||||
home:
|
||||
- html
|
||||
- rss
|
||||
- REDIR
|
||||
- redirects
|
||||
|
||||
outputFormats:
|
||||
# https://honnef.co/articles/generating-netlify-_redirects-from-hugo/
|
||||
REDIR:
|
||||
mediaType: text/caddy
|
||||
redirects:
|
||||
baseName: _redirects
|
||||
isPlainText: true
|
||||
notAlternative: true
|
||||
mediaType: text/redirects
|
||||
root: true
|
||||
|
||||
mediaTypes:
|
||||
# https://honnef.co/articles/generating-netlify-_redirects-from-hugo/
|
||||
text/caddy:
|
||||
text/redirects:
|
||||
delimeter: ""
|
||||
|
||||
privacy:
|
||||
|
||||
Reference in New Issue
Block a user