Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix feed linking and escaping

  • Loading branch information...
commit 7667115351f0b8d9b6829dc2a99129713dcc8837 1 parent 4289007
@kneath authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 feed/index.xml
View
8 feed/index.xml
@@ -16,8 +16,12 @@ layout: nil
{% for post in site.posts %}
<entry>
- <title>{{ post.title }}</title>
- <link href="http://warpspire.com{{ post.url }}"/>
+ <title>{{ post.title | xml_escape }}</title>
+ {% if post.type == 'link' %}
+ <link href="{{ post.link }}" />
+ {% else %}
+ <link href="http://warpspire.com{{ post.url }}" />
+ {% endif %}
<updated>{{ post.date | date_to_xmlschema }}</updated>
<id>http://warpspire.com{{ post.id }}</id>
<content type="html">{{ post.content | xml_escape }}</content>
Please sign in to comment.
Something went wrong with that request. Please try again.