From a43cef4461d5d029b0a15f595e548eb75dbf3c97 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Sat, 30 Dec 2023 16:41:23 -0600 Subject: [PATCH] update copyright, rss tweaks --- config/_default/hugo.toml | 2 +- layouts/_default/rss.xml | 28 ++++++---------------------- 2 files changed, 7 insertions(+), 23 deletions(-) diff --git a/config/_default/hugo.toml b/config/_default/hugo.toml index a58ec42..6529864 100644 --- a/config/_default/hugo.toml +++ b/config/_default/hugo.toml @@ -1,7 +1,7 @@ baseURL = "https://runtimeterror.dev" theme = "risotto" title = "runtimeterror" -copyright = "© 2018-2023 [runtimeterror](https://runtimeterror.dev)" +copyright = "© 2023 runtimeterror" paginate = 10 languageCode = "en" DefaultContentLanguage = "en" diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 02cb455..5adbde4 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -11,15 +11,15 @@ {{- $pages = $pages | first $limit -}} {{- end -}} {{- printf "" | safeHTML }} - + {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} {{ .Permalink }} 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}}{{ with .Site.Copyright }} + {{.}}{{end}}{{ with .Site.Copyright }} {{.}}{{end}}{{ if not .Date.IsZero }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} {{- with .OutputFormats.Get "RSS" -}} @@ -30,25 +30,9 @@ {{ .Title }} {{ .Permalink }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{ with .Site.Params.Author.name }}{{.}}{{end}} {{ .Permalink }} - - {{ if ne site.Params.rss_summary false }} - {{ if .Params.summary }} - {{ .Params.summary | html }} - {{ else if .Params.abstract }} - {{ .Params.abstract | html }} - {{ else if .Summary }} - {{ .Summary | html }} - {{ end }} - {{ if site.Params.rss_summary_read_more_link }} - {{ $trans := i18n "read_more" -}} - {{ printf "

%s

" .RelPermalink $trans | html }} - {{ end }} - {{ else }} - {{ .Content | html }} - {{ end }} -
+ {{ .Summary | transform.XMLEscape | safeHTML }} {{ end }}