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:
2026-11-24 07:29:44 -07:00
co-authored by Claude Opus 5.5
parent ecd4aaa13e
commit ea86f3ccd0
7 changed files with 16 additions and 5 deletions
+3
View File
@@ -1,3 +1,6 @@
baseURL = "https://opensourcemakeover.com/"
title = "Open Source Makeover"
[module]
[module.hugoVersion]
extended = true
+1 -1
View File
@@ -23,7 +23,7 @@ title = "Here's what we like..."
show_more_url = "posts"
[[entries]]
title = "Get your RSS"
title = "Subscribe via RSS (XML feed)"
url = "index.xml"
[[entries]]
+1 -1
View File
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="{{ $.Site.LanguageCode }}">
<html lang="{{ $.Site.Language.Locale }}">
{{- partial "head.html" . -}}
<body a="{{ $.Site.Params.theme_config.appearance | default "auto" }}">
<main class="page-content" aria-label="Content">
+1 -1
View File
@@ -1 +1 @@
"Open Source Makeover" is a work of [Federated Computer](https://federated.computer).
"Open Source Makeover" is a work of [Federated Computer](https://federated.computer). [Subscribe via RSS](/index.xml).
+1 -1
View File
@@ -7,6 +7,6 @@
{{- end -}}
</header>
{{ .Content }}
{{ partial "menu_item.html" (dict "context" . "collection" $.Site.Data.menu.entries) }}
{{ partial "menu_item.html" (dict "context" . "collection" hugo.Data.menu.entries) }}
{{ end }}
+8
View File
@@ -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" }}
+1 -1
View File
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="{{ $.Site.LanguageCode }}">
<html lang="{{ $.Site.Language.Locale }}">
{{- partial "head.html" . -}}
<body a="{{ $.Site.Params.theme_config.appearance | default "auto" }}">
<main class="page-content" aria-label="Content">