From 5db16a08a9726b67b5bb96fd17f813fa1b74f568 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Tue, 5 Jan 2021 10:58:04 +0100 Subject: Moved all metadata processing from the build script into a Pandoc Lua filter --- templates/base.html | 17 ++++------------- templates/feed.xml | 10 +++++----- templates/list.html | 4 ++-- templates/partials/pageHeaderSm.html | 2 +- 4 files changed, 12 insertions(+), 21 deletions(-) (limited to 'templates') diff --git a/templates/base.html b/templates/base.html index 18d65c8..3e079a1 100644 --- a/templates/base.html +++ b/templates/base.html @@ -22,22 +22,13 @@ $endfor$ - $if(is_home)$$else$$title$ – $endif$$site.title$ + $if(section.is_index)$$else$$title$ – $endif$$site.title$ - $if(section.id)$ - - $endif$ @@ -45,14 +36,14 @@
$for(menus.main)$ - $it.label$ + $it.label$ $endfor$
- $if(is_home)$ + $if(section.is_index)$ @@ -66,7 +57,7 @@ ${page()}
- $if(is_home)$ + $if(section.is_index)$ diff --git a/templates/feed.xml b/templates/feed.xml index 4cc2c17..083049e 100644 --- a/templates/feed.xml +++ b/templates/feed.xml @@ -1,9 +1,9 @@ - $if(is_home)$$else$$title$ – $endif$$site.title$ - - - $feed.last_update.rfc3339$ + $if(section.is_index)$$else$$title$ – $endif$$site.title$ + + + $pages.last_update.rfc3339$ $url.full$ $for(author)$ @@ -16,7 +16,7 @@ $for(pages)$ $for(it.all)$ - $if(it.date.rfc3339)$ + $if(it.date)$ $it.url.full$ <![CDATA[$it.title$]]> diff --git a/templates/list.html b/templates/list.html index 4d62d47..2d663e0 100644 --- a/templates/list.html +++ b/templates/list.html @@ -1,8 +1,8 @@ $body$ -$if(categories.by_id)$ +$if(categories)$
    - $for(categories.by_id)$ + $for(categories)$
  • $it.key/uppercase$ $it.value.name$
  • $endfor$
diff --git a/templates/partials/pageHeaderSm.html b/templates/partials/pageHeaderSm.html index 4255de0..92359fa 100644 --- a/templates/partials/pageHeaderSm.html +++ b/templates/partials/pageHeaderSm.html @@ -3,7 +3,7 @@ $-- | _.~-"""-----~`` ,-´ ' ' |' | ' ' $-- '| .´ ,~'\ ).,__,)/,," ' . ' | | | ' .' $-- |_ `~´ (/\\, (/\\, _' '_ _| ' |_ _' '_ -
+
 .|                     //\__      '  .'      |  . |           ' . ' 
  |      _.~-"""-----~``  ,-´      '   '      |'   |           '   ' 
 '|   .´  ,~'\ ).,__,)/,,"         ' . '      |  | |           '  .' 
-- 
cgit v1.2.3-70-g09d2