From 3ab8981195dbbdc553fbe1a14178b6793a81fa3b Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 30 Dec 2020 09:06:31 +0100 Subject: Revert to old category metadata collection, add support for authors --- templates/base.html | 6 +++--- templates/categoryRef.html | 6 +++--- templates/feed.xml | 27 +++++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 6 deletions(-) (limited to 'templates') diff --git a/templates/base.html b/templates/base.html index 9574d08..4b8ea1e 100644 --- a/templates/base.html +++ b/templates/base.html @@ -6,8 +6,8 @@ - $for(author-meta)$ - + $for(author)$ + $endfor$ $if(date-meta)$ @@ -53,7 +53,7 @@ $body$ $if(section.is_blog)$ $if(pages.not_empty)$ - ${categories.blog:categoryRef()} + ${categoryRef()} ${pagelistByYear()} $endif$ $endif$ diff --git a/templates/categoryRef.html b/templates/categoryRef.html index 5715fa8..58dc5fe 100644 --- a/templates/categoryRef.html +++ b/templates/categoryRef.html @@ -1,7 +1,7 @@ -$if(it)$ +$if(categories)$ $endif$ diff --git a/templates/feed.xml b/templates/feed.xml index 68d2fc4..f1439eb 100644 --- a/templates/feed.xml +++ b/templates/feed.xml @@ -5,6 +5,14 @@ $feed.last_update.rfc3339$ $url.full$ + $for(author)$ + + $it.name$ + $if(it.email)$ + $it.email$ + $endif$ + + $endfor$ $for(pages)$ $for(it.all)$ @@ -12,6 +20,25 @@ $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.date.rfc3339$ -- cgit v1.2.3-70-g09d2