diff options
author | Volpeon <git@volpeon.ink> | 2022-07-27 20:20:06 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2022-07-27 20:20:06 +0200 |
commit | 8162c18314f9fbac121c03b3485ca107fccc9179 (patch) | |
tree | ffc0fc822563af29a7be9afc30381e65d4fe3a8c /templates | |
parent | Added draft feature (diff) | |
download | volpeon.ink-8162c18314f9fbac121c03b3485ca107fccc9179.tar.gz volpeon.ink-8162c18314f9fbac121c03b3485ca107fccc9179.tar.bz2 volpeon.ink-8162c18314f9fbac121c03b3485ca107fccc9179.zip |
Skip drafts in feed
Diffstat (limited to 'templates')
-rw-r--r-- | templates/feed.xml | 22 |
1 files 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 @@ | |||
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.url)$ | 20 | $if(it.draft)$$else$ |
21 | <entry> | 21 | $if(it.url)$ |
22 | <category term="$pages.date_desc.namespace.full$" label="$pages.date_desc.title$"/> | 22 | <entry> |
23 | $it:feed_entry()$ | 23 | <category term="$pages.date_desc.namespace.full$" label="$pages.date_desc.title$"/> |
24 | </entry> | 24 | $it:feed_entry()$ |
25 | </entry> | ||
26 | $endif$ | ||
25 | $endif$ | 27 | $endif$ |
26 | $endfor$ | 28 | $endfor$ |
27 | $endfor$ | 29 | $endfor$ |
28 | $else$ | 30 | $else$ |
29 | $for(pages.date_desc)$ | 31 | $for(pages.date_desc)$ |
30 | $if(it.url)$ | 32 | $if(it.draft)$$else$ |
31 | <entry> | 33 | $if(it.url)$ |
32 | $it:feed_entry()$ | 34 | <entry> |
33 | </entry> | 35 | $it:feed_entry()$ |
36 | </entry> | ||
37 | $endif$ | ||
34 | $endif$ | 38 | $endif$ |
35 | $endfor$ | 39 | $endfor$ |
36 | $endif$ | 40 | $endif$ |