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:
@@ -1,3 +1,6 @@
|
|||||||
|
baseURL = "https://opensourcemakeover.com/"
|
||||||
|
title = "Open Source Makeover"
|
||||||
|
|
||||||
[module]
|
[module]
|
||||||
[module.hugoVersion]
|
[module.hugoVersion]
|
||||||
extended = true
|
extended = true
|
||||||
|
|||||||
+1
-1
@@ -23,7 +23,7 @@ title = "Here's what we like..."
|
|||||||
show_more_url = "posts"
|
show_more_url = "posts"
|
||||||
|
|
||||||
[[entries]]
|
[[entries]]
|
||||||
title = "Get your RSS"
|
title = "Subscribe via RSS (XML feed)"
|
||||||
url = "index.xml"
|
url = "index.xml"
|
||||||
|
|
||||||
[[entries]]
|
[[entries]]
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{ $.Site.LanguageCode }}">
|
<html lang="{{ $.Site.Language.Locale }}">
|
||||||
{{- partial "head.html" . -}}
|
{{- partial "head.html" . -}}
|
||||||
<body a="{{ $.Site.Params.theme_config.appearance | default "auto" }}">
|
<body a="{{ $.Site.Params.theme_config.appearance | default "auto" }}">
|
||||||
<main class="page-content" aria-label="Content">
|
<main class="page-content" aria-label="Content">
|
||||||
|
|||||||
+1
-1
@@ -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
@@ -7,6 +7,6 @@
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
</header>
|
</header>
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
{{ partial "menu_item.html" (dict "context" . "collection" $.Site.Data.menu.entries) }}
|
{{ partial "menu_item.html" (dict "context" . "collection" hugo.Data.menu.entries) }}
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@@ -13,6 +13,14 @@
|
|||||||
</title>
|
</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 }}" />
|
<link rel="shortcut icon" type="image/x-icon" href="{{ $.Site.Params.favicon | relURL }}" />
|
||||||
{{ $options := (dict "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction)) }}
|
{{ $options := (dict "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction)) }}
|
||||||
{{ $sass := resources.Get "css/main.scss" }}
|
{{ $sass := resources.Get "css/main.scss" }}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{ $.Site.LanguageCode }}">
|
<html lang="{{ $.Site.Language.Locale }}">
|
||||||
{{- partial "head.html" . -}}
|
{{- partial "head.html" . -}}
|
||||||
<body a="{{ $.Site.Params.theme_config.appearance | default "auto" }}">
|
<body a="{{ $.Site.Params.theme_config.appearance | default "auto" }}">
|
||||||
<main class="page-content" aria-label="Content">
|
<main class="page-content" aria-label="Content">
|
||||||
|
|||||||
Reference in New Issue
Block a user