it-gro / hugo-theme-w3css-basic

This theme is built with W3.CSS and is highly configurable. More than 100 monochromatic color themes and 25 shortcodes. It has support for Cookie consent, image processing, image galleries, page bundles and resources (attachments).
https://it-gro.github.io/hugo-theme-w3css-basic.github.io/
MIT License
64 stars 32 forks source link

Site.RSSLink outdated in head.rss.html #297

Closed onnotasler closed 1 month ago

onnotasler commented 5 months ago

If I try to compile the theme, Hugo shows a warning the Site.RSSLink is outdated. It is referenced once in head.rss.html:

{{- if .Site.RSSLink }}

{{- end -}}

According to the Hugo documentation, it needs to be replaced with: {{ with .OutputFormats.Get "rss" -}} {{ printf <link rel=%q type=%q href=%q title=%q> .Rel .MediaType.Type .Permalink site.Title | safeHTML }} {{- end -}}

it-gro commented 1 month ago

Hi Thanks for pointing this out - and even providing the fix. Done in 00d02f0