diff options
author | Julien Dessaux | 2021-03-12 12:41:42 +0100 |
---|---|---|
committer | Julien Dessaux | 2021-03-12 12:41:42 +0100 |
commit | da9e4060c3c341a768d2f6d44975230926fbcd1b (patch) | |
tree | 73a266a48da5dbbf0f72c0f8ac2be26d12d026b4 | |
parent | Simplified tags menu generation (diff) | |
download | www-da9e4060c3c341a768d2f6d44975230926fbcd1b.tar.gz www-da9e4060c3c341a768d2f6d44975230926fbcd1b.tar.bz2 www-da9e4060c3c341a768d2f6d44975230926fbcd1b.zip |
Simplified rss feed handling by directing directly to the blog section
-rw-r--r-- | config.toml | 2 | ||||
-rw-r--r-- | layouts/_default/rss.xml | 2 | ||||
-rw-r--r-- | 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 "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }} <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> <channel> - <title>{{ if or (eq .Title .Site.Title) (eq .Title "Home") }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title> + <title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ .Site.Title }} - {{ .Title }}{{ end }}</title> <link>{{ .Permalink }}</link> <description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description> <generator>Hugo -- gohugo.io</generator>{{ 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 @@ <nav> <ul> <li class="nav-menu-title"><a href="/">{{ .Site.Title }}</a></li> - <li><a href="/index.xml">RSS</a></li> + <li><a href="/blog/index.xml">RSS</a></li> <li><a href="/tags/">Tags</a></li> {{- $p := . -}} {{- range .Site.Menus.main.ByWeight -}} |