diff options
Diffstat (limited to 'themes/sapka-2024/layouts/_default/rss.xml')
-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> |