From d6a1965d55c4a7cb65823191d6f3ad00ea8b1a48 Mon Sep 17 00:00:00 2001 From: Tyler Hallada Date: Tue, 11 Jul 2017 02:09:28 -0400 Subject: [PATCH] Exclude hidden posts from feed. --- feed.xml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/feed.xml b/feed.xml index 221419e..c4e1a23 100644 --- a/feed.xml +++ b/feed.xml @@ -9,13 +9,15 @@ redirect_from: "/rss" {{ site.url }} {% for post in site.posts limit:10 %} - - {{ post.title | xml_escape }} - {{ post.content | xml_escape }} - {{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }} - {{ site.url }}{{ post.url }} - {{ site.url }}{{ post.url }} - + {% if post.hidden == null or post.hidden == false %} + + {{ post.title | xml_escape }} + {{ post.content | xml_escape }} + {{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }} + {{ site.url }}{{ post.url }} + {{ site.url }}{{ post.url }} + + {% endif %} {% endfor %}