diff --git a/help/common/feed.xml b/help/common/feed.xml index 9f56cb2f..1a75e149 100644 --- a/help/common/feed.xml +++ b/help/common/feed.xml @@ -6,7 +6,7 @@ layout: null NASA/SAO Astrophysics Data System - + {{ site.time | date_to_xmlschema }} https://ui.adsabs.harvard.edu/ @@ -15,20 +15,24 @@ layout: null Copyright © 2015, NASA/SAO Astrophysics Data System - {% for post in site.posts limit:10 %} - {% if post.category contains 'blog' %} + {% assign blog_posts = site.posts | where: "category", "blog" %} + {% for post in blog_posts limit: 10 %} - http://adsabs.github.io{{ post.id }} - - {{ post.title }} + http://adsabs.github.io{{ post.id | xml_escape }} + + {{ post.title | xml_escape }} {{ post.date | date_to_xmlschema }} {{ post.date | date_to_xmlschema }} - {{ post.author }} + {{ post.author | xml_escape }} + {% if post.description %} + {{ post.description | xml_escape }} + {% else %} + {{ post.content | strip_html | replace: '&', '&' | replace: '<', '<' | replace: '>', '>' | replace: '"', '"' | replace: ''', "'" | truncatewords: 50 | xml_escape }} + {% endif %} {{ post.content | xml_escape }} - {% endif %} {% endfor %}