From 6352ebb0eb4cb83240c6d4998e0ef1375b041191 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Fri, 8 Mar 2024 23:38:23 +0100 Subject: Generate and archive blog, allow publishing --- templates/index.gmi | 3 ++- templates/index.gph | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 templates/index.gph (limited to 'templates') diff --git a/templates/index.gmi b/templates/index.gmi index 33832b1..35bebd4 100644 --- a/templates/index.gmi +++ b/templates/index.gmi @@ -1,3 +1,4 @@ # Gemlog Archive -{{= posts }} +{{~ posts: post}} +=> ./{{= post.id }}/{{= post.slug }}.gmi {{= post.title}} {{~}} diff --git a/templates/index.gph b/templates/index.gph new file mode 100644 index 0000000..5084284 --- /dev/null +++ b/templates/index.gph @@ -0,0 +1,4 @@ +Gemlog Archive + +{{~ posts: post}} +[0|{{= post.title}}|./{{= post.id }}/{{= post.slug }}.gmi|server|port] {{~}} -- cgit