aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default/single.gmi
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-20 00:13:19 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-20 00:13:19 +0300
commitdabea0efa5b58f6da478549d3889a56d5d1b5a09 (patch)
tree98ef67e651ad43aa467d20e6ea3e159b79a95008 /layouts/_default/single.gmi
parentf7c7f91ec0ffeddbfd3676cccd43edfb66c7d05d (diff)
Auto-commit 2024-12-20
Diffstat (limited to 'layouts/_default/single.gmi')
-rw-r--r--layouts/_default/single.gmi11
1 files changed, 11 insertions, 0 deletions
diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi
new file mode 100644
index 0000000..10d9876
--- /dev/null
+++ b/layouts/_default/single.gmi
@@ -0,0 +1,11 @@
+# {{ .Title }}
+
+{{ $content := .RawContent -}}
+
+{{ $content := $content | replaceRE "(?s:< !--more-- >)" "" -}}
+{{ $content := $content | replaceRE `\[(.+?)\]\((.+?)\)` "\n=> $2 $1\n" -}}
+
+{{ $content }}
+
+---
+NeonXP at {{ .Date.Format "2006-01-02" }}