From 64ab52571bad80648f26f08ce3f461b9bc3e634c Mon Sep 17 00:00:00 2001 From: Dmitry Date: Sat, 12 Oct 2024 19:20:59 +0300 Subject: [PATCH] rss: add tags for dzen.ru https://dzen.ru/help/ru/website/rss-modify.html --- layouts/_default/rss.xml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index f4e6b6d..ec4a3d0 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -11,10 +11,11 @@ {{- $pages = $pages | first $limit -}} {{- end -}} {{- printf "" | safeHTML }} - + {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} {{ .Permalink }} + {{ .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.Params.author.email }} @@ -30,6 +31,7 @@ {{ .Title }} {{ .Permalink }} + native-yes {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{ with .Site.Params.author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} {{ .Permalink }} @@ -41,8 +43,13 @@

{{ .Title }}

{{ .Content }} {{- printf "]]>" | safeHTML }} - + + + {{- printf "" | safeHTML }} +
{{ end }}
-
\ No newline at end of file +