aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2024-03-08 23:38:23 +0100
committerRuben Beltran del Rio <git@r.bdr.sh>2024-03-08 23:38:23 +0100
commit6352ebb0eb4cb83240c6d4998e0ef1375b041191 (patch)
tree3ade08c77c8ab403d3196f80fad5ed3034c3035b /templates
parent60307a9a3a39dccf652c9d9b4348e44db1e67627 (diff)
Generate and archive blog, allow publishing
Diffstat (limited to 'templates')
-rw-r--r--templates/index.gmi3
-rw-r--r--templates/index.gph4
2 files changed, 6 insertions, 1 deletions
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] {{~}}