Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/lxndrblz/anatole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralexanderdavide <alexeble1998@gmail.com>2022-04-04 22:51:22 +0300
committeralexanderdavide <alexeble1998@gmail.com>2022-04-04 22:52:33 +0300
commit89c8c6558702bf29fc1b07137d29ce80ab06ed5f (patch)
treec8d7d7a170cdaccbb7ea8f6a170856d20a9aa90f
parent6c5ea1206101728201ff083b8ed3fb271e4c1225 (diff)
feat: use front matter description as rss item description
-rw-r--r--layouts/_default/rss.xml2
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml
index bd2d079..b926875 100644
--- a/layouts/_default/rss.xml
+++ b/layouts/_default/rss.xml
@@ -34,6 +34,8 @@
<guid>{{ .Permalink }}</guid>
{{ if eq .Site.Params.rssFullContent true }}
<description>{{ .Content | html }}</description>
+ {{ else if .Description }}
+ <description>{{ .Description }}</description>
{{ else }}
<description>{{ .Summary | html }}</description>
{{ end }}