]> git.r.bdr.sh - rbdr/blog/blobdiff - templates/index.html
Set the release
[rbdr/blog] / templates / index.html
index e28be64242f428fc1a949bf8ad24113247e1ae9a..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">
   <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>
     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">
     {{~}}
         {{= 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>
     {{?}}
       <h1>This is a fresh blog!</h1>
       <p>There are no posts yet.</p>
     {{?}}