summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2022-07-27 21:52:59 +0200
committerVolpeon <git@volpeon.ink>2022-07-27 21:52:59 +0200
commitb3e7a555a21c300e34d256badfa6fa6501840756 (patch)
tree5d0243f641e4ed4ce6f5698504f8c5c036280c5d /templates
parentSkip drafts in feed (diff)
downloadvolpeon.ink-b3e7a555a21c300e34d256badfa6fa6501840756.tar.gz
volpeon.ink-b3e7a555a21c300e34d256badfa6fa6501840756.tar.bz2
volpeon.ink-b3e7a555a21c300e34d256badfa6fa6501840756.zip
Better handling of drafts
Diffstat (limited to 'templates')
-rw-r--r--templates/feed.xml22
1 files changed, 9 insertions, 13 deletions
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 @@
17 $if(layout.is_categorized_list)$ 17 $if(layout.is_categorized_list)$
18 $for(pages.date_desc)$ 18 $for(pages.date_desc)$
19 $for(it.pages.date_desc)$ 19 $for(it.pages.date_desc)$
20 $if(it.draft)$$else$
21 $if(it.url)$
22 <entry>
23 <category term="$pages.date_desc.namespace.full$" label="$pages.date_desc.title$"/>
24 $it:feed_entry()$
25 </entry>
26 $endif$
27 $endif$
28 $endfor$
29 $endfor$
30 $else$
31 $for(pages.date_desc)$
32 $if(it.draft)$$else$
33 $if(it.url)$ 20 $if(it.url)$
34 <entry> 21 <entry>
22 <category term="$pages.date_desc.namespace.full$" label="$pages.date_desc.title$"/>
35 $it:feed_entry()$ 23 $it:feed_entry()$
36 </entry> 24 </entry>
37 $endif$ 25 $endif$
26 $endfor$
27 $endfor$
28 $else$
29 $for(pages.date_desc)$
30 $if(it.url)$
31 <entry>
32 $it:feed_entry()$
33 </entry>
38 $endif$ 34 $endif$
39 $endfor$ 35 $endfor$
40 $endif$ 36 $endif$