aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default/rss.xml
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/layouts/_default/rss.xml')
-rw-r--r--themes/default/layouts/_default/rss.xml7
1 files changed, 6 insertions, 1 deletions
diff --git a/themes/default/layouts/_default/rss.xml b/themes/default/layouts/_default/rss.xml
index 01f2aa6..2925201 100644
--- a/themes/default/layouts/_default/rss.xml
+++ b/themes/default/layouts/_default/rss.xml
@@ -19,6 +19,11 @@
{{- $description = $author.description | markdownify | html | htmlUnescape -}}
{{- end -}}
+{{- if (eq .Page.Type "tags") -}}
+ {{- $title = print "#" (lower .Title) " -- " .Site.Title | markdownify | htmlUnescape -}}
+ {{- $description = print .Site.Title " Tags: #" .Title -}}
+{{- end -}}
+
{{- $profile := $author.picture.profile -}}
{{- $file := not (urls.Parse $profile).Host -}}
@@ -107,7 +112,7 @@
{{- end -}}
<item>
- <title>{{ .Summary | htmlUnescape }}</title>
+ <title>{{ (or .Summary .Title) | htmlUnescape }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
<guid>{{ .Permalink }}</guid>