WIP: Wrap posts in an article tag
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
$render{"templates/root"}
|
||||
<h2><code>templates/blog.html</code></h2>
|
||||
|
||||
$wrap{"root"}
|
||||
|
||||
<section>
|
||||
<h2><a href="$root/posts/">Web Log</a></h2>
|
||||
@@ -8,4 +10,17 @@ $render{"templates/root"}
|
||||
</p>
|
||||
</section>
|
||||
|
||||
$body
|
||||
<article>
|
||||
<header>
|
||||
<div>
|
||||
<h2>$(title or id)</h2>
|
||||
<time>$(post.publish_date)</time>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
$body
|
||||
|
||||
<div class="mt-16">
|
||||
<a href="/posts">Back to posts</a>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>$title</title>
|
||||
<title>$site_title</title>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
id="font-bitter-css"
|
||||
|
||||
Reference in New Issue
Block a user