From b0a76dba75db2273d3764e4891cf153a914fff8a Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Thu, 19 May 2016 23:08:41 -0400 Subject: [PATCH] Hide drafts from rss --- feed.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/feed.xml b/feed.xml index 7850857..ff0c1b5 100644 --- a/feed.xml +++ b/feed.xml @@ -8,7 +8,8 @@ layout: null {% if site.description %}{{ site.description | xml_escape }}{% endif %} {{ site.url }} - {% for post in site.posts limit:10 %} + {% for post in site.posts limit:20 %} + {% if post.status == "published" %} {{ post.title | xml_escape }} {% if post.author.name %} @@ -23,6 +24,7 @@ layout: null {{ site.url }}{{ post.url }} {{ site.url }}{{ post.url }} + {% endif %} {% endfor %} - \ No newline at end of file +