]> git.r.bdr.sh - rbdr/blog/blobdiff - templates/index.html
Merge branch 'feature/update-code' into develop
[rbdr/blog] / templates / index.html
index 858396b3545f7fe46ea59971f9d055bbdd69d716..0c45ce2fae45c44d63cfe70bc9f649748954cbd3 100644 (file)
@@ -6,6 +6,8 @@
 
     <title>blog 🍕</title>
 
+    <script src="/js/blog.js"></script>
+
     <link href="css/style.css" rel="stylesheet">
 
   </head>
       <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>