From: Ruben Beltran del Rio Date: Wed, 14 Feb 2024 15:58:09 +0000 (+0100) Subject: Make templates more generic X-Git-Tag: 6.0.0~4 X-Git-Url: https://git.r.bdr.sh/rbdr/blog/commitdiff_plain/02f408c24d82d1fac4e55c146c4fa57cbdcdeca4?hp=3563ec23663e856fbaaa747bc174019ea4a3bcd4 Make templates more generic --- diff --git a/templates/feed.xml b/templates/feed.xml index 36edc28..17a4c7c 100644 --- a/templates/feed.xml +++ b/templates/feed.xml @@ -1,14 +1,12 @@ - - Ruben's Gemlog - https://r.bdr.sh/gemlog/ - This is the gemlog at r.bdr.sh. + My Ephemeral Blog + My Ephemeral Blog en {{~ it.posts: post}} - rbdr:{{= post.id}} + blog:{{= post.id}} {{= post.createdOn}} {{= post.title}} diff --git a/templates/index.gmi b/templates/index.gmi new file mode 100644 index 0000000..9df2f55 --- /dev/null +++ b/templates/index.gmi @@ -0,0 +1,3 @@ +# Gemlog Archive + +{{= it.posts }} diff --git a/templates/index.html b/templates/index.html index 448a785..f1967e4 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,39 +1,27 @@ - + - - + - Ruben's gemlog + My Ephemeral Blog - - - - - - -
+

- - r.bdr.sh/gemlog + My Ephemeral Blog

Only 3 posts kept at a time. This blog is also available in txt - and rss. - Full archive available in gemini -

-

- → home. + and rss

{{~ it.posts: post}}
@@ -47,7 +35,7 @@ {{?}}
diff --git a/templates/index.txt b/templates/index.txt index b3b27a9..1474e7c 100644 --- a/templates/index.txt +++ b/templates/index.txt @@ -1,18 +1,11 @@ -╔══════════════════════════════════════════════════════════════════════════════╗ -║ ║ -║ The Blog at Unlimited Pizza ║ -║ ║ -╚══════════════════════════════════════════════════════════════════════════════╝ -┌──────────────────────────────────────────────────────────────────────────────┐ -│ Written by Rubén Beltrán del Río │ -└──────────────────────────────────────────────────────────────────────────────┘ +# My Ephemeral Blog {{~ it.posts: post}} {{= post.raw}} -■──────────────────────────────────────────────────────────────────────────────■ +------------------------------------ {{~}} {{? it.posts.length === 0}} -# This is a fresh blog! +## This is a fresh blog! There are no posts yet. {{?}}