mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-13 16:45:14 +01:00
fix feed errors, ref #7
This commit is contained in:
parent
d3a85b2d6a
commit
ebeafc479d
@ -15,12 +15,12 @@ layout: nil
|
||||
|
||||
{% for post in site.posts limit:100 %}
|
||||
<entry>
|
||||
<title>{{ post.title }}</title>
|
||||
<title>{{ post.title | escape }}</title>
|
||||
|
||||
{% if post.layout == "link" %}
|
||||
<link>{{ post.linkurl }}</link>
|
||||
<link>{{ post.linkurl | escape }}</link>
|
||||
{% else %}
|
||||
<link>{{ site.url }}/{{ post.url }}</link>
|
||||
<link>{{ site.url }}/{{ post.url | escape }}</link>
|
||||
{% endif %}
|
||||
|
||||
<published>{{ post.date | date_to_xmlschema }}</published>
|
||||
@ -29,7 +29,7 @@ layout: nil
|
||||
<updated>{{ post.updated | date_to_xmlschema }}</updated>
|
||||
{% endif %}
|
||||
|
||||
<id>{{ site.url }}/{{ post.url }}</id>
|
||||
<id>{{ site.url }}/{{ post.url | escape }}</id>
|
||||
<content type="html">
|
||||
{% if post.image %}
|
||||
<img src="{{ site.url }}/media/{{ post.image }}" />
|
||||
@ -38,8 +38,8 @@ layout: nil
|
||||
{{ post.content | xml_escape }}
|
||||
|
||||
{% if post.layout == "link" %}
|
||||
<a class="more-link" href="{{ post.linkurl }}">Go to source &#187;</a> <br />
|
||||
<a href="{{ site.url }}/{{ post.url }}" title="Permalink for this post">&#8734;</a>
|
||||
<a class="more-link" href="{{ post.linkurl | escape }}">Go to source &#187;</a> <br />
|
||||
<a href="{{ site.url }}/{{ post.url | escape }}" title="Permalink for this post">&#8734;</a>
|
||||
{% endif %}
|
||||
</content>
|
||||
</entry>
|
||||
|
Loading…
Reference in New Issue
Block a user