diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/index.html | 12 |
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> |