summaryrefslogtreecommitdiff
path: root/layouts/_markup
diff options
context:
space:
mode:
authorandre4ik3 <andre4ik3@fastmail.com>2025-08-18 17:42:27 +0000
committerandre4ik3 <andre4ik3@fastmail.com>2025-08-18 17:42:27 +0000
commitd9ff6edbfcdc408e23684c00df806eac72fd02b2 (patch)
tree45a8fe89aa4de37a2dab4b293330874e37907beb /layouts/_markup
Initial commit
Diffstat (limited to 'layouts/_markup')
-rw-r--r--layouts/_markup/render-blockquote.gmi1
-rw-r--r--layouts/_markup/render-codeblock.gmi3
-rw-r--r--layouts/_markup/render-heading.gmi3
-rw-r--r--layouts/_markup/render-link.gmi4
4 files changed, 11 insertions, 0 deletions
diff --git a/layouts/_markup/render-blockquote.gmi b/layouts/_markup/render-blockquote.gmi
new file mode 100644
index 0000000..434d5ad
--- /dev/null
+++ b/layouts/_markup/render-blockquote.gmi
@@ -0,0 +1 @@
+> {{ .Text }}
diff --git a/layouts/_markup/render-codeblock.gmi b/layouts/_markup/render-codeblock.gmi
new file mode 100644
index 0000000..fccccac
--- /dev/null
+++ b/layouts/_markup/render-codeblock.gmi
@@ -0,0 +1,3 @@
+```{{ .Type }}
+{{ .Inner }}
+```
diff --git a/layouts/_markup/render-heading.gmi b/layouts/_markup/render-heading.gmi
new file mode 100644
index 0000000..d33cde1
--- /dev/null
+++ b/layouts/_markup/render-heading.gmi
@@ -0,0 +1,3 @@
+
+{{ strings.Repeat .Level "#" }} {{ .Text }}
+
diff --git a/layouts/_markup/render-link.gmi b/layouts/_markup/render-link.gmi
new file mode 100644
index 0000000..3ca54ac
--- /dev/null
+++ b/layouts/_markup/render-link.gmi
@@ -0,0 +1,4 @@
+
+
+=> {{ .Destination | safeURL }} {{ .Text }}
+