summaryrefslogtreecommitdiff
path: root/layouts/posts/list.gmi
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2023-07-23 18:50:51 +0200
committerPatrick Spek <p.spek@tyil.nl>2023-07-23 18:50:51 +0200
commit05bcb583f05c49d6ecd793b1fcdd0242930a1f96 (patch)
tree613cfa7a6b561009d74fbe67f5c04f68ea87d641 /layouts/posts/list.gmi
parentcc2713533d4c2fc75960dfe1767497050bfef516 (diff)
Add gemini output supportgemini
Diffstat (limited to 'layouts/posts/list.gmi')
-rw-r--r--layouts/posts/list.gmi20
1 files changed, 20 insertions, 0 deletions
diff --git a/layouts/posts/list.gmi b/layouts/posts/list.gmi
new file mode 100644
index 0000000..40a0ba5
--- /dev/null
+++ b/layouts/posts/list.gmi
@@ -0,0 +1,20 @@
+{{- define "main" }}
+<h1>{{ .Title }}</h1>
+{{ .Content }}
+{{- range .Sections }}
+ <h2>{{ .Title }}</h2>
+ <ul>
+ {{- range .Pages }}
+ <li>
+ <a href="{{ .Permalink }}">{{ .Title }}</a>
+ <small>
+ {{ .Date | dateFormat "2006-01-02" }}
+ {{- range .Params.tags }}
+ <a href="/tags/{{ . | lower }}">#{{ . }}</a>
+ {{- end }}
+ </small>
+ </li>
+ {{- end }}
+ </ul>
+{{- end }}
+{{- end }}