Skip to content

Commit

Permalink
Add RSS link to header (#1019)
Browse files Browse the repository at this point in the history
Co-authored-by: Emruz Hossain <[email protected]>
  • Loading branch information
SrNetoChan and hossainemruz authored Jan 14, 2025
1 parent 0737251 commit 5c1de70
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@

<link rel="icon" type="image/png" href="{{ $favicon }}" />
{{end}}

{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }}
{{ end }}

0 comments on commit 5c1de70

Please sign in to comment.