]> git.r.bdr.sh - rbdr/blog/blobdiff - templates/index.html
Manually import
[rbdr/blog] / templates / index.html
index f1967e46c374574f98a6e03950b83c72e2fcf769..5b818a6e080f7915a83f4d5c4e58b22d237051da 100644 (file)
@@ -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">
     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>