fix post lists

This commit is contained in:
nek0 2017-11-12 19:11:17 +01:00
parent 1bf324f210
commit 74eefd84e0
6 changed files with 10 additions and 7 deletions

View File

@ -12,6 +12,6 @@ welcome. Meet us at our Assembly at 34C3.
The latest posts here are:
$partial("templates/post-list.md")$
$partial("templates/post-list.html")$
and there are even more in the [archive](/archive.html).

View File

@ -81,7 +81,7 @@ main = do
-- (menuCtx firstUrl latestUrl)
defaultCtx
makeItem ""
>>= loadAndApplyTemplate "templates/archive.md" archiveCtx
>>= loadAndApplyTemplate "templates/archive.html" archiveCtx
>>= loadAndApplyTemplate "templates/default.html" archiveCtx
>>= relativizeUrls

View File

@ -1,2 +1,3 @@
Here you can find all my previous posts:
$partial("templates/post-list.md")$
$partial("templates/post-list.html")$

View File

@ -28,7 +28,7 @@
<article id="content">
<h1>$title$</h1>
$body$
$body$
</article>
</div>

5
templates/post-list.html Normal file
View File

@ -0,0 +1,5 @@
<ul>
$for(posts)$
<li><a href="$url$"> $title$ - $date$</a></li>
$endfor$
</ul>

View File

@ -1,3 +0,0 @@
$for(posts)$
* [$title$]($url$) - $date$
$endfor$