tomfran / typo

A simple Hugo theme
https://tomfran.github.io/
MIT License
160 stars 48 forks source link

feature request: enable RSS #11

Closed 19-10-9 closed 3 weeks ago

19-10-9 commented 1 month ago

could you please add the enableRSS feature?

tomfran commented 1 month ago

Sure I can look into it, also, if you already know how to do it and want to contribute, feel free to do so 👍🏻

GigaArpit commented 1 month ago

See:

ivan-avalos commented 4 weeks ago

Hugo builds a RSS feed by default, simply add this to head.html in order to reference it:

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

https://gohugo.io/templates/rss/