Hide drafts from rss

This commit is contained in:
Quentin Dufour 2016-05-19 23:08:41 -04:00
parent d862e14605
commit b0a76dba75

View file

@ -8,7 +8,8 @@ layout: null
<description>{% if site.description %}{{ site.description | xml_escape }}{% endif %}</description>
<link>{{ site.url }}</link>
<atom:link href="{{ site.url }}/feed.xml" rel="self" type="application/rss+xml" />
{% for post in site.posts limit:10 %}
{% for post in site.posts limit:20 %}
{% if post.status == "published" %}
<item>
<title>{{ post.title | xml_escape }}</title>
{% if post.author.name %}
@ -23,6 +24,7 @@ layout: null
<link>{{ site.url }}{{ post.url }}</link>
<guid isPermaLink="true">{{ site.url }}{{ post.url }}</guid>
</item>
{% endif %}
{% endfor %}
</channel>
</rss>
</rss>