Use summary field for RSS feeds
This commit is contained in:
parent
57f451a6ea
commit
855c3cbb8c
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Reference in a new issue