From b26abc90439e5e1d25176ffa80f7ba0b34b3fa43 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 6 Jan 2021 14:49:43 +0100 Subject: Improved subpage organization code in metadata filter --- templates/base.html | 1 + templates/feed.xml | 58 +++++++++++++++++++++++++---------------------------- templates/list.html | 18 ++++++++--------- 3 files changed, 36 insertions(+), 41 deletions(-) (limited to 'templates') diff --git a/templates/base.html b/templates/base.html index 3e079a1..b4a2953 100644 --- a/templates/base.html +++ b/templates/base.html @@ -6,6 +6,7 @@ + $for(author)$ diff --git a/templates/feed.xml b/templates/feed.xml index 083049e..a968205 100644 --- a/templates/feed.xml +++ b/templates/feed.xml @@ -14,37 +14,33 @@ $endfor$ - $for(pages)$ - $for(it.all)$ - $if(it.date)$ - - $it.url.full$ - <![CDATA[$it.title$]]> - $if(it.author)$ - $for(it.author)$ - - $it.name$ - $if(it.email)$ - $it.email$ - $endif$ - - $endfor$ - $else$ - $for(author)$ - - $author.name$ - $if(author.email)$ - $author.email$ - $endif$ - - $endfor$ - $endif$ - - $it.date.rfc3339$ - $it.last_update.rfc3339$ - - + $for(pages.all_dated)$ + + $it.url.full$ + <![CDATA[$it.title$]]> + $if(it.author)$ + $for(it.author)$ + + $it.name$ + $if(it.email)$ + $it.email$ + $endif$ + + $endfor$ + $else$ + $for(author)$ + + $author.name$ + $if(author.email)$ + $author.email$ + $endif$ + + $endfor$ $endif$ - $endfor$ + + $it.date.rfc3339$ + $it.last_update.rfc3339$ + + $endfor$ diff --git a/templates/list.html b/templates/list.html index 2d663e0..d74681c 100644 --- a/templates/list.html +++ b/templates/list.html @@ -8,15 +8,13 @@ $if(categories)$ $endif$ -$for(pages)$ - $for(it.by_year)$ - - $endfor$ +$for(pages.by_year)$ + $endfor$ -- cgit v1.2.3-54-g00ecf