From cfeccd69d5f81c535ffe2ad9507438149e45f03a Mon Sep 17 00:00:00 2001 From: Volpeon <git@volpeon.ink> Date: Wed, 26 May 2021 09:00:02 +0200 Subject: Feed: Skip entries without last_update --- templates/feed_entry.xml | 58 ++++++++++++++++++++++++------------------------ 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/templates/feed_entry.xml b/templates/feed_entry.xml index df44661..c9d8af5 100644 --- a/templates/feed_entry.xml +++ b/templates/feed_entry.xml @@ -1,30 +1,30 @@ -<entry> - <id>$it.url.full$</id> - <title>$it.title$</title> - <link rel="alternate" href="$it.url.abs$"/> - $if(it.author)$ - $for(it.author)$ - <author> - <name>$it.name$</name> - $if(it.email)$ - <email>$it.email$</email> - $endif$ - </author> - $endfor$ - $else$ - $for(author)$ - <author> - <name>$author.name$</name> - $if(author.email)$ - <email>$author.email$</email> - $endif$ - </author> - $endfor$ - $endif$ - $if(it.date)$ - <published>$it.date.rfc3339$</published> - $endif$ - $if(it.last_update)$ +$if(it.last_update)$ + <entry> + <id>$it.url.full$</id> + <title>$it.title$</title> + <link rel="alternate" href="$it.url.abs$"/> <updated>$it.last_update.rfc3339$</updated> - $endif$ -</entry> + $if(it.author)$ + $for(it.author)$ + <author> + <name>$it.name$</name> + $if(it.email)$ + <email>$it.email$</email> + $endif$ + </author> + $endfor$ + $else$ + $for(author)$ + <author> + <name>$author.name$</name> + $if(author.email)$ + <email>$author.email$</email> + $endif$ + </author> + $endfor$ + $endif$ + $if(it.date)$ + <published>$it.date.rfc3339$</published> + $endif$ + </entry> +$endif$ -- cgit v1.2.3-70-g09d2