Fix RSS feed metadata, add feed links, fix Hugo deprecations
- Set baseURL and site title so feed links and titles are correct - Add rel=alternate RSS link to page head for feed discovery - Add "Subscribe via RSS" link to footer - Rename home menu feed link to "Subscribe via RSS (XML feed)" - Replace deprecated .Site.LanguageCode with .Site.Language.Locale - Replace deprecated .Site.Data with hugo.Data Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -13,6 +13,14 @@
|
||||
</title>
|
||||
|
||||
|
||||
{{ with .OutputFormats.Get "rss" }}
|
||||
<link rel="alternate" type="application/rss+xml" href="{{ .Permalink }}" title="{{ $.Site.Title }}" />
|
||||
{{ else }}
|
||||
{{ with site.Home.OutputFormats.Get "rss" }}
|
||||
<link rel="alternate" type="application/rss+xml" href="{{ .Permalink }}" title="{{ $.Site.Title }}" />
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
<link rel="shortcut icon" type="image/x-icon" href="{{ $.Site.Params.favicon | relURL }}" />
|
||||
{{ $options := (dict "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction)) }}
|
||||
{{ $sass := resources.Get "css/main.scss" }}
|
||||
|
||||
Reference in New Issue
Block a user