diff options
author | mms <michal@sapka.me> | 2024-09-23 23:00:13 +0200 |
---|---|---|
committer | mms <michal@sapka.me> | 2024-09-23 23:00:13 +0200 |
commit | 0879852b669b45eab00d570c22e764de0a71b106 (patch) | |
tree | 960c5a4765c921e2d7e8da09b18e2148196e1853 /themes | |
parent | be4204047f3672f76151328bf5e3e269f2fc76da (diff) |
feat: fix rss
Diffstat (limited to 'themes')
-rw-r--r-- | themes/sapka-2024/layouts/_default/rss.xml | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/themes/sapka-2024/layouts/_default/rss.xml b/themes/sapka-2024/layouts/_default/rss.xml index 563c93c..fa34bd5 100644 --- a/themes/sapka-2024/layouts/_default/rss.xml +++ b/themes/sapka-2024/layouts/_default/rss.xml @@ -67,9 +67,14 @@ {{- with $authorEmail }}<author>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</author>{{ end }} <guid>{{ crypto.MD5 .Date }}</guid> <description> - {{ if in .Page.Params.Categories "blog" }} - {{ safeHTML "<![CDATA[" }}{{ replace .Content "\n\n" "\n" | safeHTML }}<hr><p style="font-style:italic">Reply via <a href="https://michal.sapka.me/me/contact/">email</a></p>]]></description> - {{ end }} + {{ if in .Page.Params.Categories "blog" }} + {{ safeHTML "<![CDATA[" }}{{ replace .Content "\n\n" "\n" | safeHTML }} + <hr><p style="font-style:italic">Reply via <a href="https://michal.sapka.me/me/contact/">email</a></p>]]> + {{ else }} + {{ safeHTML "<![CDATA[" }}{{ partial "external_link" . }} + <hr><p style="font-style:italic">Reply via <a href="https://michal.sapka.me/me/contact/">email</a></p>]]> + {{ end }} + </description> </item> {{- end }} </channel> |