Fix excerpts on blog posts
This commit is contained in:
parent
fc4710f434
commit
c0e4947b5b
|
@ -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 %}
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue