mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-21 19:21:18 -04:00
move site-related headers/redirects out of netlify.toml
[skip ci]
This commit is contained in:
@@ -1,8 +1,21 @@
|
||||
# Prefer Netlify redirects over Hugo aliases
|
||||
# https://www.netlify.com/docs/redirects/
|
||||
/index.php* / 301
|
||||
/feed /feed.xml 301
|
||||
/rss /feed.xml 301
|
||||
/index.xml /feed.xml 301
|
||||
|
||||
{{ range $p := .Site.Pages -}}
|
||||
{{- range .Aliases }}
|
||||
{{- . | printf "%-35s" }} {{ $p.RelPermalink }} 301
|
||||
{{- with .Site.Params.social.webmentionIO }}
|
||||
/xmlrpc.php https://webmention.io/{{ . }}/xmlrpc 302
|
||||
{{ end -}}
|
||||
|
||||
/favicon.ico /img/favicon.ico 200
|
||||
/favicon-* /img/favicon-:splat 200
|
||||
/apple-touch-icon.png /img/apple-touch-icon.png 200
|
||||
/apple-touch-icon-precomposed.png /img/apple-touch-icon.png 200
|
||||
/safari-pinned-tab.svg /img/safari-pinned-tab.svg 200
|
||||
|
||||
# Hugo aliases: prefer HTTP 301 redirects over meta tags
|
||||
{{- range $page := .Site.Pages }}
|
||||
{{- range .Aliases }}
|
||||
{{ . }} {{ $page.RelPermalink }} 301
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
Reference in New Issue
Block a user