]> git.r.bdr.sh - rbdr/blog/blobdiff - templates/index.html
Use serde and time
[rbdr/blog] / templates / index.html
index 448a785662db71c6e663392439875a6350cd719e..5b818a6e080f7915a83f4d5c4e58b22d237051da 100644 (file)
@@ -1,53 +1,37 @@
-<!doctype html>
-<html lang="en" class="h-feed">
+<!doctype html> <html lang="en">
   <head>
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1">
-    <meta class="p-author" name="author" content="Rubén Beltrán del Río">
-    <meta name="description" content="This is ruben's gemlog">
+    <meta name="description" content="My ephemeral blog">
 
     <meta name="theme-color" content="#ffffff">
 
-    <title class="p-name">Ruben's gemlog</title>
+    <title class="p-name">My Ephemeral Blog</title>
 
-    <script src="./js/blog.js"></script>
-
-    <link href="/css/style.css" rel="stylesheet">
     <link href="./feed.xml" rel="alternate" hreflang="en" title="RSS feed">
-
-    <script type="module" src="//r.bdr.sh/js/animation.js"></script>
-
   </head>
   <body>
-    <header aria-label="Logo" class="main-header">
+    <header>
       <h1>
-        <canvas width=100 height=100></canvas>
-        <a href="/gemlog">r.bdr.sh/gemlog</a>
+        <a href="./">My Ephemeral Blog</a>
       </h1>
     </header>
     <main>
     <p>
     Only 3 posts kept at a time.
     This blog is also available in <a href="./index.txt">txt</a>
-    and <a href="./feed.xml">rss</a>.
-    Full archive available in <a href="gemini://r.bdr.sh/gemlog">gemini</a>
-    </p>
-    <p>
-    → <a href="/">home</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. <a href="https://r.bdr.sh">r.bdr.sh</a></p>
-    </footer>
   </body>
 </html>