fix post lists
This commit is contained in:
parent
1bf324f210
commit
74eefd84e0
6 changed files with 10 additions and 7 deletions
|
@ -12,6 +12,6 @@ welcome. Meet us at our Assembly at 34C3.
|
||||||
|
|
||||||
The latest posts here are:
|
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).
|
and there are even more in the [archive](/archive.html).
|
||||||
|
|
|
@ -81,7 +81,7 @@ main = do
|
||||||
-- (menuCtx firstUrl latestUrl)
|
-- (menuCtx firstUrl latestUrl)
|
||||||
defaultCtx
|
defaultCtx
|
||||||
makeItem ""
|
makeItem ""
|
||||||
>>= loadAndApplyTemplate "templates/archive.md" archiveCtx
|
>>= loadAndApplyTemplate "templates/archive.html" archiveCtx
|
||||||
>>= loadAndApplyTemplate "templates/default.html" archiveCtx
|
>>= loadAndApplyTemplate "templates/default.html" archiveCtx
|
||||||
>>= relativizeUrls
|
>>= relativizeUrls
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
Here you can find all my previous posts:
|
Here you can find all my previous posts:
|
||||||
$partial("templates/post-list.md")$
|
|
||||||
|
$partial("templates/post-list.html")$
|
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
<article id="content">
|
<article id="content">
|
||||||
<h1>$title$</h1>
|
<h1>$title$</h1>
|
||||||
$body$
|
$body$
|
||||||
</article>
|
</article>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
5
templates/post-list.html
Normal file
5
templates/post-list.html
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<ul>
|
||||||
|
$for(posts)$
|
||||||
|
<li><a href="$url$"> $title$ - $date$</a></li>
|
||||||
|
$endfor$
|
||||||
|
</ul>
|
|
@ -1,3 +0,0 @@
|
||||||
$for(posts)$
|
|
||||||
* [$title$]($url$) - $date$
|
|
||||||
$endfor$
|
|
Loading…
Reference in a new issue