From 8162c18314f9fbac121c03b3485ca107fccc9179 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 27 Jul 2022 20:20:06 +0200 Subject: Skip drafts in feed --- templates/feed.xml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/templates/feed.xml b/templates/feed.xml index 915c000..e6d3cae 100644 --- a/templates/feed.xml +++ b/templates/feed.xml @@ -17,20 +17,24 @@ $if(layout.is_categorized_list)$ $for(pages.date_desc)$ $for(it.pages.date_desc)$ - $if(it.url)$ - - - $it:feed_entry()$ - + $if(it.draft)$$else$ + $if(it.url)$ + + + $it:feed_entry()$ + + $endif$ $endif$ $endfor$ $endfor$ $else$ $for(pages.date_desc)$ - $if(it.url)$ - - $it:feed_entry()$ - + $if(it.draft)$$else$ + $if(it.url)$ + + $it:feed_entry()$ + + $endif$ $endif$ $endfor$ $endif$ -- cgit v1.2.3-70-g09d2