Simplified rss feed handling by directing directly to the blog section

This commit is contained in:
Julien Dessaux 2021-03-12 12:41:42 +01:00
parent 0457e2249a
commit da9e4060c3
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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 }}

View file

@ -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 -}}