X-Git-Url: https://git.r.bdr.sh/rbdr/blog/blobdiff_plain/02f408c24d82d1fac4e55c146c4fa57cbdcdeca4..d62c4ea8debf01c2e251ef0c2520f947662f6c52:/templates/index.html

diff --git a/templates/index.html b/templates/index.html
index f1967e4..5b818a6 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1,5 +1,4 @@
-<!doctype html>
-<html lang="en">
+<!doctype html> <html lang="en">
   <head>
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1">
@@ -23,19 +22,16 @@
     This blog is also available in <a href="./index.txt">txt</a>
     and <a href="./feed.xml">rss</a>
     </p>
-    {{~ it.posts: post}}
-      <article class="h-entry" id="{{= post.index + 1}}">
+    {{~ posts: post}}
+      <article class="h-entry" id="{{= post.index}}">
         {{= post.html}}
       </article>
       <hr class="separator">
     {{~}}
-    {{? it.posts.length === 0}}
+    {{? !has_posts}}
       <h1>This is a fresh blog!</h1>
       <p>There are no posts yet.</p>
     {{?}}
     </main>
-    <footer>
-      <p>Press 1, 2, and 3 to switch.</p>
-    </footer>
   </body>
 </html>