From 6ed3c56e7abcd9eecfb8a59b1ee31eabbc11a985 Mon Sep 17 00:00:00 2001 From: Daniel Barber Date: Fri, 25 Oct 2019 17:33:20 -0400 Subject: [PATCH] Add head links and redirects for old feed URL's --- layouts/partials/head.html | 11 +++++++++++ static/_redirects | 6 ++++++ 2 files changed, 17 insertions(+) create mode 100644 static/_redirects diff --git a/layouts/partials/head.html b/layouts/partials/head.html index b63f840d..988bae59 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -9,3 +9,14 @@ {{ $sass := resources.Get "sass/main.scss" }} {{ $style := $sass | resources.ToCSS }} + + +{{ range .AlternativeOutputFormats -}} + {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} +{{ end -}} + +{{ range .Sections -}} + {{- range .AlternativeOutputFormats }} +{{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} + {{- end }} +{{ end -}} diff --git a/static/_redirects b/static/_redirects new file mode 100644 index 00000000..6d6cf0e7 --- /dev/null +++ b/static/_redirects @@ -0,0 +1,6 @@ +/feed.xml /index.xml +/feed.json /index.json +/feed.blog.xml /blog/index.xml +/feed.blog.json /blog/index.json +/feed.photos.xml /photos/index.xml +/feed.photos.json /photos/index.json