From 67caf3817d635abcf885b3e9341eda692d486958 Mon Sep 17 00:00:00 2001 From: wgroeneveld Date: Tue, 19 Apr 2022 21:47:03 +0200 Subject: [PATCH] fix rss validator: author should contain an e-mail address --- themes/jefklak-creative-portfolio/layouts/_default/rss.xml | 2 +- .../jefklak-creative-portfolio/layouts/partials/sidebar.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/themes/jefklak-creative-portfolio/layouts/_default/rss.xml b/themes/jefklak-creative-portfolio/layouts/_default/rss.xml index 3e7cf79..c86dcfc 100644 --- a/themes/jefklak-creative-portfolio/layouts/_default/rss.xml +++ b/themes/jefklak-creative-portfolio/layouts/_default/rss.xml @@ -21,7 +21,7 @@ Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} Hugo -- gohugo.io{{ with .Site.LanguageCode }} {{.}}{{end}}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} {{ if not .Date.IsZero }}{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} {{ with .OutputFormats.Get "RSS" }} {{ printf "" .Permalink .MediaType | safeHTML }} diff --git a/themes/jefklak-creative-portfolio/layouts/partials/sidebar.html b/themes/jefklak-creative-portfolio/layouts/partials/sidebar.html index 8bb2e91..acf3384 100644 --- a/themes/jefklak-creative-portfolio/layouts/partials/sidebar.html +++ b/themes/jefklak-creative-portfolio/layouts/partials/sidebar.html @@ -54,7 +54,7 @@ {{ $currContent := .Content }} {{ $backlinks := slice }} {{ $forwardlinks := slice }} - {{ range (where (where .Site.Pages ".Section" "in" (slice "articles" "games")) ".Params.ignore" "!=" "true") }} + {{ range (where (where .Site.Pages.ByDate.Reverse ".Section" "in" (slice "articles" "games")) ".Params.ignore" "!=" "true") }} {{ $found := findRE $currRellink .Content 1 }} {{ if $found }} {{ $backlinks = $backlinks | append . }} @@ -75,7 +75,7 @@