mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2026-08-02 03:47:16 -05:00
WIP: Add redirects in Netlify _redirects style using old guide
Uses this guide: https://honnef.co/articles/generating-netlify-_redirects-from-hugo/ I didn't realize until after doing all this that there's a guide for the same thing in the official Hugo docs, so I'm about to migrate over to that.
This commit is contained in:
@@ -21,6 +21,23 @@ taxonomies:
|
||||
outputs:
|
||||
page:
|
||||
- html
|
||||
home:
|
||||
- html
|
||||
- rss
|
||||
- REDIR
|
||||
|
||||
outputFormats:
|
||||
# https://honnef.co/articles/generating-netlify-_redirects-from-hugo/
|
||||
REDIR:
|
||||
mediaType: text/caddy
|
||||
baseName: _redirects
|
||||
isPlainText: true
|
||||
notAlternative: true
|
||||
|
||||
mediaTypes:
|
||||
# https://honnef.co/articles/generating-netlify-_redirects-from-hugo/
|
||||
text/caddy:
|
||||
delimeter: ""
|
||||
|
||||
privacy:
|
||||
googleAnalytics:
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
{{ range hugo.Sites -}}
|
||||
{{ range $p := .Pages -}}
|
||||
{{ range .Aliases -}}
|
||||
{{ . }} {{ $p.RelPermalink }}
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
Reference in New Issue
Block a user