aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicksphere.ch>2022-04-30 00:00:00 +0000
committerNicholas Johnson <nick@nicksphere.ch>2022-04-30 00:00:00 +0000
commit7aa9bdd5653fb01539e032f89d081aefccd25b578dc9de9626d06e4e6dd8bb29 (patch)
tree9753c7949694a52e9109ab6ad028bdda37d83ad9937b6accf7e9ed8b65b7926c /layouts/_default
parent290401a89ec4d6c877452ea8d8fb4a70b76c84c64a20d8e2fd2b6351337f0a7c (diff)
downloadhugo-theme-journal-7aa9bdd5653fb01539e032f89d081aefccd25b578dc9de9626d06e4e6dd8bb29.tar.gz
hugo-theme-journal-7aa9bdd5653fb01539e032f89d081aefccd25b578dc9de9626d06e4e6dd8bb29.zip
Output Gemini
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/baseof.gmi4
-rw-r--r--layouts/_default/single.gmi6
2 files changed, 10 insertions, 0 deletions
diff --git a/layouts/_default/baseof.gmi b/layouts/_default/baseof.gmi
new file mode 100644
index 0000000..3ef51c1
--- /dev/null
+++ b/layouts/_default/baseof.gmi
@@ -0,0 +1,4 @@
+{{ partial "header.gmi" . }}
+{{ block "main" . }}{{ end }}
+
+{{ partial "footer.gmi" . -}}
diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi
new file mode 100644
index 0000000..9681f92
--- /dev/null
+++ b/layouts/_default/single.gmi
@@ -0,0 +1,6 @@
+{{ define "main" }}
+=> ./{{ replaceRE ".+?/" "../" .RelPermalink }} Return to homepage
+
+{{ $content := .RawContent }}
+{{- $content = $content | replaceRE `\[(.+?)\]\((.+?)\)` "=> $2 $1" }}
+{{- $content }}{{ end }}