From 0d2d905e3b05591cc2b2f1b3926df0a9aa0becf4 Mon Sep 17 00:00:00 2001 From: Reorx Date: Sun, 8 May 2022 01:24:38 +0800 Subject: [PATCH] rename some image variables; rss default show content --- layouts/_default/rss.xml | 8 ++++---- layouts/partials/head.html | 2 +- layouts/partials/header.html | 16 ++++++++-------- layouts/partials/templates/schema_json.html | 4 ++-- 4 files changed, 15 insertions(+), 15 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 @@ {{ 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 }} - {{- with site.Params.images }} + {{- with site.Params.logo }} - {{ index . 0 | absURL }} - {{ index . 0 | absURL }} + {{ .icon | absURL }} + {{ .icon | absURL }} {{- end }} Hugo -- gohugo.io{{ with site.LanguageCode }} @@ -40,7 +40,7 @@ {{ with site.Author.email }}{{.}}{{ with site.Author.name }} ({{.}}){{end}}{{end}} {{ .Permalink }} {{ with .Description | html }}{{ . }}{{ else }}{{ .Summary | html }}{{ end -}} - {{- if site.Params.ShowFullTextinRSS }} + {{- if not site.Params.RSSNoContent}} {{ (printf "" .Content) | safeHTML }} {{- end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 43ef99e..36775ce 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -60,7 +60,7 @@ {{- end }} {{- /* Favicons */}} - + {{- /* RSS */}} {{ range .AlternativeOutputFormats -}} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 004f7c6..f708cb7 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -42,11 +42,11 @@