Add RSS link to header (#1019)

Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
This commit is contained in:
Alexandre Neto 2025-01-14 00:01:42 +00:00 committed by GitHub
parent 07372519ee
commit 5c1de702ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,3 +18,7 @@
<link rel="icon" type="image/png" href="{{ $favicon }}" /> <link rel="icon" type="image/png" href="{{ $favicon }}" />
{{end}} {{end}}
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }}
{{ end }}