From da9e4060c3c341a768d2f6d44975230926fbcd1b Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Fri, 12 Mar 2021 12:41:42 +0100 Subject: Simplified rss feed handling by directing directly to the blog section --- config.toml | 2 +- layouts/_default/rss.xml | 2 +- layouts/partials/nav.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config.toml b/config.toml index 88db67d..27debbf 100644 --- a/config.toml +++ b/config.toml @@ -5,7 +5,7 @@ description = "The personal space of yet another sysadmin" enableRobotsTXT = true enableGitInfo = true paginate = 32 -rssLimit = 32 +rssLimit = 16 # Highlighting config pygmentsCodeFences = true diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 36acade..3ba58d6 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -13,7 +13,7 @@ {{- printf "" | safeHTML }} - {{ if or (eq .Title .Site.Title) (eq .Title "Home") }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} + {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ .Site.Title }} - {{ .Title }}{{ end }} {{ .Permalink }} Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} Hugo -- gohugo.io{{ with .Site.LanguageCode }} diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index bf65d09..b6c4db5 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -2,7 +2,7 @@