Browse Source

fix and advertise blog RSS feeds

max.mehl 5 months ago
parent
commit
59606141f9
No account linked to committer's email address

+ 1
- 1
themes/hugo-sustain/layouts/_default/list.html View File

@@ -52,7 +52,7 @@
52 52
             {{ if $selection }}
53 53
               <span class="article-rss"><a class="label label-rss" href="/{{ .Data.Plural }}/{{lower .Title}}/index.xml" title="RSS Feed"><i class="fa fa-rss" aria-hidden="true"></i> Subscribe to »{{.Title}}«</a></span>
54 54
             {{ else }}
55
-              <span class="article-rss"><a class="label label-rss" href="/index.xml" title="RSS Feed"><i class="fa fa-rss" aria-hidden="true"></i>  Subscribe to all posts</a></span>
55
+              <span class="article-rss"><a class="label label-rss" href="/blog/index.xml" title="RSS Feed"><i class="fa fa-rss" aria-hidden="true"></i>  Subscribe to all posts</a></span>
56 56
             {{ end }}
57 57
           </div>
58 58
         </div>

+ 1
- 1
themes/hugo-sustain/layouts/_default/rss.xml View File

@@ -1,7 +1,7 @@
1 1
 {{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" | safeHTML }}
2 2
 <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
3 3
   <channel>
4
-    <title>{{ if eq  .Title  .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
4
+    <title>{{ if eq  .Title  .Site.Title }}{{ .Site.Title }}{{ else }}{{ .Site.Title }}{{ with .Title }} ({{.|humanize}}){{ end }}{{ end }}</title>
5 5
     <link>{{ .Permalink }}</link>
6 6
     <description>Recent content {{ if ne  .Title  .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
7 7
     <generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}

+ 3
- 0
themes/hugo-sustain/layouts/partials/head.html View File

@@ -8,6 +8,9 @@
8 8
     {{ with .Site.Params.description }}<meta name="description" content="{{ . }}" />{{ end }}
9 9
     {{ with .Site.Params.keywords }}<meta name="description" content="{{ . }}" />{{ end }}
10 10
     <link rel="shortcut icon" type="image/x-icon" href="{{ .Site.BaseURL }}img/favicon.ico" />
11
+    <link href="/blog/index.xml" rel="alternate" type="application/rss+xml" title="Max Mehl - blog feed">
12
+    <link href="/categories/english/index.xml" rel="alternate" type="application/rss+xml" title="Max Mehl - blog feed (EN)">
13
+    <link href="/categories/deutsch/index.xml" rel="alternate" type="application/rss+xml" title="Max Mehl - blog feed (DE)">
11 14
     <title>
12 15
       {{- if .IsHome -}}
13 16
           {{- .Site.Title -}}

Loading…
Cancel
Save