blog/templates/post.html
rhiannon morris be46a2fc5c fix tags with spaces
add a filter that replaces tags e.g.
"tag name" → {name: "tag name", slug: "tag_name"}
2022-09-17 20:54:16 +02:00

37 lines
470 B
HTML

$head()$
<header>
$if(title)$
<h1>$title$</h1>
$endif$
<div class=meta>
$if(date)$
<h2 class=date>$date$</h2>
$endif$
$if(tags)$
<nav class=tags>
tags:
<ul>
$for(tags)$
<li><a href=/tag-$it.slug$.html>$it.name$</a>
$endfor$
</ul>
</nav>
$endif$
</div>
<hr>
</header>
$if(show-toc)$
<nav id=toc>
<h2>Contents</h2>
$table-of-contents$
</nav>
$endif$
<main>
$body$
</main>
$foot()$