aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-10-04 21:35:16 -0400
committertdro <tdro@noreply.example.com>2022-10-04 21:35:16 -0400
commit2b4ebe2379a0af30374b34c174dd8211e4ef5d03 (patch)
tree5850258afc35fda16db58d5a0a0781d048a6691c /themes/default/layouts/_default
parent621c83287d46125a7fcb238415745dc54d3464af (diff)
downloadcanory-2b4ebe2379a0af30374b34c174dd8211e4ef5d03.tar.gz
canory-2b4ebe2379a0af30374b34c174dd8211e4ef5d03.tar.bz2
canory-2b4ebe2379a0af30374b34c174dd8211e4ef5d03.zip
themes/default/layouts/_default/rss: Set description properly
Let's follow the rules.. setup for adding overall site description later
Diffstat (limited to 'themes/default/layouts/_default')
-rw-r--r--themes/default/layouts/_default/home.xslt.xsl2
-rw-r--r--themes/default/layouts/_default/rss.xml4
2 files changed, 4 insertions, 2 deletions
diff --git a/themes/default/layouts/_default/home.xslt.xsl b/themes/default/layouts/_default/home.xslt.xsl
index ebe0b88..42d6984 100644
--- a/themes/default/layouts/_default/home.xslt.xsl
+++ b/themes/default/layouts/_default/home.xslt.xsl
@@ -28,7 +28,7 @@
</a>
</icon-button>
<section>
- <h2><xsl:value-of select="/rss/channel/title"/>'s Micro Blog Feed</h2>
+ <h2><xsl:value-of select="/rss/channel/title"/>'s Feed</h2>
<small>Web Feed Preview</small>
</section>
{{ if .Site.Menus.main }}
diff --git a/themes/default/layouts/_default/rss.xml b/themes/default/layouts/_default/rss.xml
index f29a8f8..beda119 100644
--- a/themes/default/layouts/_default/rss.xml
+++ b/themes/default/layouts/_default/rss.xml
@@ -26,9 +26,11 @@
{{- $author := partial "function-authors-data.html" . -}}
{{- $title := partial "base-title.html" . -}}
+{{- $description := partial "base-title.html" . -}}
{{- if (eq .Page.Kind "section") -}}
{{- $title = $author.name -}}
+ {{- $description = $author.description | markdownify | html | htmlUnescape -}}
{{- end -}}
{{- $profile := $author.picture.profile -}}
@@ -55,7 +57,7 @@
<channel>
<title>{{ $title }}</title>
<link>{{ .Permalink }}</link>
- <description>{{ partial "base-title.html" . }}</description>
+ <description>{{ $description }}</description>
<language>{{ .Site.LanguageCode }}</language>
<category>{{ partial "author-user.html" . }}</category>
<image>