From 2f5a09324ad2cdff4530f2a8d01badb9471ed22a Mon Sep 17 00:00:00 2001 From: wgroeneveld Date: Tue, 19 Apr 2022 21:45:39 +0200 Subject: [PATCH] fix rss validator: author should contain an e-mail address --- .../jefklak-creative-portfolio/layouts/_default/rss.xml | 8 +++----- .../layouts/partials/sidebar.html | 4 ++-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/themes/jefklak-creative-portfolio/layouts/_default/rss.xml b/themes/jefklak-creative-portfolio/layouts/_default/rss.xml index 4e3c9c9..3e7cf79 100644 --- a/themes/jefklak-creative-portfolio/layouts/_default/rss.xml +++ b/themes/jefklak-creative-portfolio/layouts/_default/rss.xml @@ -14,7 +14,7 @@ {{- end -}} {{- printf "" | safeHTML }} {{- printf "" | safeHTML }} - + {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} {{ .Permalink }} @@ -22,9 +22,7 @@ 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}}{{ with .Site.Copyright }} - {{.}}{{end}}{{ if not .Date.IsZero }} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ 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 }} {{ end }} @@ -35,7 +33,7 @@ {{ .Permalink }} {{ .Site.Author.mastodonlink }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{ with $.Site.Author.name }} {{.}}{{end}} + {{ with $.Site.Author.name }} {{.}}{{end}} {{ .Permalink }} {{ if .Keywords }} {{ range .Keywords }} diff --git a/themes/jefklak-creative-portfolio/layouts/partials/sidebar.html b/themes/jefklak-creative-portfolio/layouts/partials/sidebar.html index acf3384..8bb2e91 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.ByDate.Reverse ".Section" "in" (slice "articles" "games")) ".Params.ignore" "!=" "true") }} + {{ range (where (where .Site.Pages ".Section" "in" (slice "articles" "games")) ".Params.ignore" "!=" "true") }} {{ $found := findRE $currRellink .Content 1 }} {{ if $found }} {{ $backlinks = $backlinks | append . }} @@ -75,7 +75,7 @@