Use summary field for RSS feeds

This commit is contained in:
Oliver Davies 2018-05-06 11:31:45 +01:00
parent 57f451a6ea
commit 855c3cbb8c
2 changed files with 6 additions and 2 deletions

View file

@ -21,7 +21,9 @@ use: [posts]
<link href="{{ site.url }}{{ post.url }}"/>
<updated>{{ post.date|date('c') }}</updated>
<id>{{ site.url }}{{ post.url }}</id>
{% if post.blocks.excerpt %}
{% if post.summary %}
<content type="html"><![CDATA[{{ post.summary|markdown }}]]></content>
{% elseif post.blocks.excerpt %}
<content type="html"><![CDATA[{{ post.blocks.excerpt|markdown }}]]></content>
{% else %}
<content type="html"><![CDATA[{{ post.blocks.content|markdown }}]]></content>

View file

@ -20,7 +20,9 @@ generator: [posts_tag_index]
<link href="{{ site.url }}{{ post.url }}"/>
<updated>{{ post.date|date('c') }}</updated>
<id>{{ site.url }}{{ post.url }}</id>
{% if post.blocks.excerpt %}
{% if post.summary %}
<content type="html"><![CDATA[{{ post.summary|markdown }}]]></content>
{% elseif post.blocks.excerpt %}
<content type="html"><![CDATA[{{ post.blocks.excerpt|markdown }}]]></content>
{% else %}
<content type="html"><![CDATA[{{ post.blocks.content|markdown }}]]></content>