Implement article indexing in ansi
This commit is contained in:
parent
0cc991a3f2
commit
7d71c4bfda
10 changed files with 94 additions and 42 deletions
36
pandoc/template
Normal file
36
pandoc/template
Normal 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)$
|
||||
|
||||
[1m[23m[39m[49m[24m[29mARTICLES[0m
|
||||
|
||||
$for(articles)$
|
||||
$if(articles.title)$
|
||||
[1m[23m[39m[49m[24m[29m$articles.title$[0m$if(articles.filename)$ ($articles.filename$)$endif$
|
||||
$endif$
|
||||
$if(articles.summary)$
|
||||
$articles.summary$
|
||||
$endif$
|
||||
$if(articles.author)$ $articles.author$$endif$$if(articles.date)$ - [22m[3m[39m[49m[24m[29m$articles.date$[0m$endif$
|
||||
|
||||
$endfor$
|
||||
$endif$
|
||||
$for(include-after)$
|
||||
|
||||
$include-after$
|
||||
$endfor$
|
||||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue