From f6a545b00a4046879b7cc25c06c37bb6b6880b43 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Fri, 8 Mar 2024 14:53:01 +0100 Subject: Use serde and time --- templates/feed.xml | 6 +++--- templates/index.gmi | 2 +- templates/index.html | 9 ++++----- templates/index.txt | 4 ++-- 4 files changed, 10 insertions(+), 11 deletions(-) (limited to 'templates') diff --git a/templates/feed.xml b/templates/feed.xml index 17a4c7c..d95e38c 100644 --- a/templates/feed.xml +++ b/templates/feed.xml @@ -4,13 +4,13 @@ My Ephemeral Blog My Ephemeral Blog en - {{~ it.posts: post}} + {{~ posts: post}} blog:{{= post.id}} - {{= post.createdOn}} + {{= post.created_on_utc}} {{= post.title}} - {{= post.html}} + {{= post.escaped_html}} {{~}} diff --git a/templates/index.gmi b/templates/index.gmi index 9df2f55..33832b1 100644 --- a/templates/index.gmi +++ b/templates/index.gmi @@ -1,3 +1,3 @@ # Gemlog Archive -{{= it.posts }} +{{= posts }} 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 @@ - - + @@ -23,13 +22,13 @@ This blog is also available in txt and rss

- {{~ it.posts: post}} -
+ {{~ posts: post}} +
{{= post.html}}

{{~}} - {{? it.posts.length === 0}} + {{? !has_posts}}

This is a fresh blog!

There are no posts yet.

{{?}} diff --git a/templates/index.txt b/templates/index.txt index 1474e7c..ca0fba4 100644 --- a/templates/index.txt +++ b/templates/index.txt @@ -1,10 +1,10 @@ # My Ephemeral Blog -{{~ it.posts: post}} +{{~ posts: post}} {{= post.raw}} ------------------------------------ {{~}} -{{? it.posts.length === 0}} +{{? posts_count == 0}} ## This is a fresh blog! There are no posts yet. -- cgit