diff --git a/public/categories/feed.xml b/public/categories/feed.xml index 256ff8a9..c0016c78 100644 --- a/public/categories/feed.xml +++ b/public/categories/feed.xml @@ -48,4 +48,4 @@ - + \ No newline at end of file diff --git a/public/categories/教程/feed.xml b/public/categories/教程/feed.xml index 1397ce5d..f6446a1f 100644 --- a/public/categories/教程/feed.xml +++ b/public/categories/教程/feed.xml @@ -1788,4 +1788,4 @@ - + \ No newline at end of file diff --git a/public/categories/文案/feed.xml b/public/categories/文案/feed.xml index d0772ff2..fb6a4b0a 100644 --- a/public/categories/文案/feed.xml +++ b/public/categories/文案/feed.xml @@ -74,4 +74,4 @@ - + \ No newline at end of file diff --git a/public/categories/生活/feed.xml b/public/categories/生活/feed.xml index 3ce6d0fa..d04e811a 100644 --- a/public/categories/生活/feed.xml +++ b/public/categories/生活/feed.xml @@ -4494,4 +4494,4 @@ - + \ No newline at end of file diff --git a/public/categories/相册/feed.xml b/public/categories/相册/feed.xml index 218097d5..344e23f4 100644 --- a/public/categories/相册/feed.xml +++ b/public/categories/相册/feed.xml @@ -365,4 +365,4 @@ - + \ No newline at end of file diff --git a/public/feed.xml b/public/feed.xml index c4e96ac6..df785bd2 100644 --- a/public/feed.xml +++ b/public/feed.xml @@ -1539,4 +1539,4 @@ - + \ No newline at end of file diff --git a/public/post/feed.xml b/public/post/feed.xml index d00bded4..205b2ff1 100644 --- a/public/post/feed.xml +++ b/public/post/feed.xml @@ -6708,4 +6708,4 @@ - + \ No newline at end of file diff --git a/public/tags/feed.xml b/public/tags/feed.xml index 524baadb..2f365db8 100644 --- a/public/tags/feed.xml +++ b/public/tags/feed.xml @@ -21,4 +21,4 @@ - + \ No newline at end of file diff --git a/public/tags/美女/feed.xml b/public/tags/美女/feed.xml index a0a80298..7339a875 100644 --- a/public/tags/美女/feed.xml +++ b/public/tags/美女/feed.xml @@ -39,4 +39,4 @@ - + \ No newline at end of file diff --git a/themes/Ying/layouts/_default/rss.xml b/themes/Ying/layouts/_default/rss.xml index a87d1a79..7e2e490e 100644 --- a/themes/Ying/layouts/_default/rss.xml +++ b/themes/Ying/layouts/_default/rss.xml @@ -1,32 +1,31 @@ -{{- $pctx := . -}} - {{ if eq $pctx.Title $pctx.Site.Title }}{{ $pctx.Site.Title }}{{ else }}{{ with $pctx.Title }}{{ . }} on {{ end }}{{ $pctx.Site.Title }}{{ end }} - {{ $pctx.Permalink }} - Recent content {{ if ne $pctx.Title $pctx.Site.Title }}{{ with $pctx.Title }}in {{ . }} {{ end }}{{ end }}on {{ $pctx.Site.Title }} + {{ 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 $pctx.Site.LanguageCode }}{{ . }}{{ end }} - {{ with $pctx.Site.Author.email }} - {{ . }}{{ with $pctx.Site.Author.name }} ({{ . }}){{ end }} - {{ . }}{{ with $pctx.Site.Author.name }} ({{ . }}){{ end }} + {{ with .Site.LanguageCode }}{{ . }}{{ end }} + {{ with .Site.Author.email }} + {{ . }}{{ with .Site.Author.name }} ({{ . }}){{ end }} + {{ . }}{{ with .Site.Author.name }} ({{ . }}){{ end }} {{ end }} - {{ with $pctx.Site.Copyright }}{{ . }}{{ end }} - {{ if not $pctx.Date.IsZero }} - {{ $pctx.Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ with .Site.Copyright }}{{ . }}{{ end }} + {{ if not .Date.IsZero }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{ end }} - {{- with $pctx.OutputFormats.Get "RSS" -}} + {{- with .OutputFormats.Get "RSS" -}} {{ printf "" .Permalink .MediaType | safeHTML }} {{- end -}} - {{ range $pctx.Pages }} + {{ range .Pages }} {{ .Title }} {{ .Permalink }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{ with $pctx.Site.Author.email }}{{ . }}{{ with $pctx.Site.Author.name }} ({{ . }}){{ end }}{{ end }} + {{ with .Site.Author.email }}{{ . }}{{ with .Site.Author.name }} ({{ . }}){{ end }}{{ end }} {{ .Permalink }} {{ .Content | html }} {{ end }} - + \ No newline at end of file