summaryrefslogtreecommitdiff
path: root/layouts/index.gmi
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
commit3e570d9d8cce90b15c8f348b9f80f0accdf3446f1dab76077a0099d5494dc89c (patch)
tree8a7cfddf9d5ab5a7d047e4609245efc1b1b9f42ae603ce58e9359c8651e68faf /layouts/index.gmi
parent0f3c967d08cec7d9cc6e78f6f72c86726fc7d290bf3e5698b907d179f15aee6d (diff)
Use safeHTML for Gemini templates to prevent HTML escaping
Diffstat (limited to 'layouts/index.gmi')
-rw-r--r--layouts/index.gmi6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/index.gmi b/layouts/index.gmi
index 434fae5..9c58e8f 100644
--- a/layouts/index.gmi
+++ b/layouts/index.gmi
@@ -1,10 +1,10 @@
{{ define "main" }}
-# {{ .Site.Params.indexTitle }}
-{{ .Site.Params.indexIntro }}
+# {{ .Site.Params.indexTitle | safeHTML }}
+{{ .Site.Params.indexIntro | safeHTML }}
## Navigation Links
{{ range .Site.Menus.main -}}
-=> .{{ .URL }} {{ .Name }}
+=> .{{ .URL }} {{ .Name | safeHTML }}
{{ end }}
## Journal Entries
{{ partial "metadata.gmi" . }}{{ end }}