miniblog

Miniblog: A command-line static blog system in Common Lisp
Log | Files | Refs | README | LICENSE

commit 92fcfa2bee5d20794fdb3af88750dc11661ffd5e
parent 1c94343bb2032a019249aea431a54e301b66c3c6
Author: Decay <decay@todayiwilllaunchmyinfantsonintoorbit.com>
Date:   Sat, 16 Apr 2022 23:43:51 -0700

RSS improvements

Diffstat:
Mtemplates/rss.dtl | 14+++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/templates/rss.dtl b/templates/rss.dtl @@ -1,6 +1,11 @@ -<rss version="2.0"> +<?xml version="1.0" encoding="UTF-8"?> +<rss version="2.0" + xmlns:content="http://purl.org/rss/1.0/modules/content/" + xmlns:atom="http://www.w3.org/2005/Atom" + > <channel> <title>{{ title }}</title> + <atom:link href="{{ link }}rss.xml" rel="self" type="application/rss+xml"/> <link>{{ link }}</link> <description>{{ description }}</description> <generator>Miniblog</generator> @@ -25,7 +30,7 @@ <managingEditor>{{ managing-editor }}</managingEditor> {% endif %} {% if webmaster %} - <webmaster>{{ webmaster }}</webmaster> + <webMaster>{{ webmaster }}</webMaster> {% endif %} {% if category %} <category>{{ category }}</category> @@ -39,7 +44,10 @@ <title>{{ post.title }}</title> <link>{{ link }}#{{ post.id }}</link> <description>{{ post.content|markdown|strip-html|truncatechars:200 }}</description> - <pubDate>{{ post.last-updated-at-rfc-822 }}</pubDate> + <pubDate>{{ post.created-at-rfc-822 }}</pubDate> + <content:encoded><![CDATA[ + {{ post.content|markdown|safe }} + ]]></content:encoded> </item> {% endfor %} {% endif %}