Fix excerpts on blog posts

This commit is contained in:
Oliver Davies 2018-03-11 20:05:50 +00:00
parent fc4710f434
commit c0e4947b5b
2 changed files with 6 additions and 6 deletions

View file

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

View file

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