From 76b9d91809821addd1156f95a824de2999140656 Mon Sep 17 00:00:00 2001 From: Mahdi Dibaiee Date: Sat, 6 Nov 2021 22:34:23 +0000 Subject: [PATCH] don't include unpublished in feed --- feed.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/feed.xml b/feed.xml index a6628bd..741ab04 100644 --- a/feed.xml +++ b/feed.xml @@ -12,6 +12,9 @@ layout: null {{ site.time | date_to_rfc822 }} Jekyll v{{ jekyll.version }} {% for post in site.posts limit:10 %} + {% if post.published == false %} + {% continue %} + {% endif %} {{ post.title | xml_escape }} {{ post.content | xml_escape }}