1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 12:52:10 +00:00

Fix: expose RSS feed on all pages

This commit is contained in:
rohan kumar 2020-11-17 21:40:37 -08:00
parent 957e4a9d10
commit a4874efc07
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -5,9 +5,7 @@
<meta name="description" content="{{ . }}">
{{ end }}
{{ printf `<link rel="shortcut icon" href="%s">` ("favicon.png" | absURL) | safeHTML }}
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
<link href="{{ .Site.BaseURL }}posts/index.xml" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
{{ $resources := slice -}}