Implement article indexing in ansi

This commit is contained in:
Never Gude 2026-02-05 19:24:11 +01:00
parent 0cc991a3f2
commit 7d71c4bfda
10 changed files with 94 additions and 42 deletions

36
pandoc/template Normal file
View file

@ -0,0 +1,36 @@
$if(titleblock)$
$titleblock$
$endif$
$for(header-includes)$
$header-includes$
$endfor$
$for(include-before)$
$include-before$
$endfor$
$if(toc)$
$table-of-contents$
$endif$
$body$
$if(articles)$
ARTICLES
$for(articles)$
$if(articles.title)$
$articles.title$$if(articles.filename)$ ($articles.filename$)$endif$
$endif$
$if(articles.summary)$
$articles.summary$
$endif$
$if(articles.author)$ $articles.author$$endif$$if(articles.date)$ - $articles.date$$endif$
$endfor$
$endif$
$for(include-after)$
$include-after$
$endfor$

View file

@ -93,7 +93,7 @@ $if(articles)$
<li>
<div class="articles-header">
$if(articles.title)$
<a href="$articles.filename$" class="articles-title">$articles.title$</a>
<a href="$articles.filename$.html" class="articles-title">$articles.title$</a>
$endif$
$if(articles.author)$
<p class="articles-author"><em>$articles.author$</em></p>