aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2024-03-08 14:53:01 +0100
committerRuben Beltran del Rio <git@r.bdr.sh>2024-03-08 14:53:01 +0100
commitf6a545b00a4046879b7cc25c06c37bb6b6880b43 (patch)
treebc7da8066c080ff850d1e423c0e33bd5fb83e095 /templates/index.html
parent2998247083406f914b3647cedd19abf5507bf2c6 (diff)
Use serde and time
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html9
1 files changed, 4 insertions, 5 deletions
diff --git a/templates/index.html b/templates/index.html
index e28be64..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,13 +22,13 @@
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>
{{?}}