]> git.r.bdr.sh - rbdr/blog/blobdiff - templates/index.html
Missing comma
[rbdr/blog] / templates / index.html
index e741c68832702ff287069f1889fea434fd61ea87..5b818a6e080f7915a83f4d5c4e58b22d237051da 100644 (file)
@@ -1,34 +1,37 @@
-<!doctype html>
-<html>
+<!doctype html> <html lang="en">
   <head>
     <meta charset="utf-8">
-    <meta name="description" content="This is the blog at unlimited.pizza">
+    <meta name="viewport" content="width=device-width, initial-scale=1">
+    <meta name="description" content="My ephemeral blog">
 
-    <title>blog 🍕</title>
+    <meta name="theme-color" content="#ffffff">
 
-    <script src="/js/blog.js"></script>
-
-    <link href="css/style.css" rel="stylesheet">
+    <title class="p-name">My Ephemeral Blog</title>
 
+    <link href="./feed.xml" rel="alternate" hreflang="en" title="RSS feed">
   </head>
   <body>
-    <header class="main-header">
-      <a href="/">Blog</a>
+    <header>
+      <h1>
+        <a href="./">My Ephemeral Blog</a>
+      </h1>
     </header>
     <main>
-    {{#posts}}
-      <article id="{{id}}">
-        {{{html}}}
+    <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>
+    </p>
+    {{~ posts: post}}
+      <article class="h-entry" id="{{= post.index}}">
+        {{= post.html}}
       </article>
-      <hr>
-    {{/posts}}
-    {{^posts}}
+      <hr class="separator">
+    {{~}}
+    {{? !has_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>
-    </footer>
   </body>
 </html>