summaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
authorReorx <novoreorx@gmail.com>2022-05-08 01:24:38 +0800
committerReorx <novoreorx@gmail.com>2022-05-08 01:24:38 +0800
commit0d2d905e3b05591cc2b2f1b3926df0a9aa0becf4 (patch)
treecfdd1219290be764ed2b5552c38b6fb1e4974950 /layouts/_default
parent4f722e0c6d05755ee47ca748b03ae6bbd2f7ccf6 (diff)
rename some image variables; rss default show content
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/rss.xml8
1 files changed, 4 insertions, 4 deletions
diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml
index 134d50d..56f11a9 100644
--- a/layouts/_default/rss.xml
+++ b/layouts/_default/rss.xml
@@ -16,10 +16,10 @@
<title>{{ if eq .Title site.Title }}{{ site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ site.Title }}{{ end }}</title>
<link>{{ .Permalink }}</link>
<description>Recent content {{ if ne .Title site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ site.Title }}</description>
- {{- with site.Params.images }}
+ {{- with site.Params.logo }}
<image>
- <url>{{ index . 0 | absURL }}</url>
- <link>{{ index . 0 | absURL }}</link>
+ <url>{{ .icon | absURL }}</url>
+ <link>{{ .icon | absURL }}</link>
</image>
{{- end }}
<generator>Hugo -- gohugo.io</generator>{{ with site.LanguageCode }}
@@ -40,7 +40,7 @@
{{ with site.Author.email }}<author>{{.}}{{ with site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
<description>{{ with .Description | html }}{{ . }}{{ else }}{{ .Summary | html }}{{ end -}}</description>
- {{- if site.Params.ShowFullTextinRSS }}
+ {{- if not site.Params.RSSNoContent}}
<content:encoded>{{ (printf "<![CDATA[%s]]>" .Content) | safeHTML }}</content:encoded>
{{- end }}
</item>