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