aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorBen Beltran <ben@nsovocal.com>2020-05-31 23:25:11 +0200
committerBen Beltran <ben@nsovocal.com>2020-05-31 23:25:11 +0200
commitd92ac8ccf6516011bc40bff2b17ef0d0d766f9de (patch)
tree70543365776109995e6103aacab82259bf1f2da2 /templates
parent5aabf12286e74aeb60b829d6401db8b17881a03f (diff)
Update dependencies + adapt code for them
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/index.html b/templates/index.html
index e741c68..0c45ce2 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -16,16 +16,16 @@
<a href="/">Blog</a>
</header>
<main>
- {{#posts}}
- <article id="{{id}}">
- {{{html}}}
+ {{~ it.posts: post}}
+ <article id="{{= post.id}}">
+ {{= post.html}}
</article>
<hr>
- {{/posts}}
- {{^posts}}
+ {{~}}
+ {{? it.posts}}
<h1>This is a fresh blog!</h1>
<p>There are no posts yet.</p>
- {{/posts}}
+ {{?}}
</main>
<footer>
<p>Only 3 entries kept at any time. Press 1, 2, and 3 to switch. <a href="https://unlimited.pizza">unlimited.pizza</a></p>