summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2020-05-17 09:18:59 +0200
committerPatrick Spek <p.spek@tyil.nl>2020-05-17 09:18:59 +0200
commit9bfd18ac2c68f88d2922ea5ab9d41281537704b3 (patch)
tree895c23d0105acb4d4816b86293c923049792e6bc
parentdd5e979191a53624c9e88b16686aa5b386b16382 (diff)
Format Atom feed with HTML markup
-rw-r--r--atom.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/atom.xml b/atom.xml
index c43d02c..3d77b95 100644
--- a/atom.xml
+++ b/atom.xml
@@ -25,7 +25,9 @@ layout: null
<updated>{{ post.date | date_to_xmlschema }}</updated>
<link rel="alternate" type="text/html" href="{{ post.url | prepend: site.baseurl | prepend: site.url }}" />{% if post.description %}
<summary>{{ post.description | strip | xml_escape }}</summary>{% endif %}
- <content>{{ post.content | strip_html }}</content>{% for tag in post.tags %}
+ <content type="html" xml:base="{{ post.url | absolute_url | xml_escape }}">
+ {{ post.content | strip | xml_escape }}
+ </content>{% for tag in post.tags %}
<category term="{{ tag | xml_escape }}" />{% endfor %}{% for cat in post.categories %}
<category term="{{ cat | xml_escape }}" />{% endfor %}
</entry>{% endfor %}