aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/single.gmi1
-rw-r--r--layouts/_default/single.html1
2 files changed, 2 insertions, 0 deletions
diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi
index 93501e0..c1d8bf2 100644
--- a/layouts/_default/single.gmi
+++ b/layouts/_default/single.gmi
@@ -2,6 +2,7 @@
=> ./{{ replaceRE ".+?/" "../" .RelPermalink | safeURL }} 🔗 Return to homepage
+# {{ .Name | safeHTML }}
{{ $content := .RawContent }}
{{- $content = $content | replaceRE `\n####{0,3}` "\n###" }}
{{- $content = $content | replaceRE `\n\[(.+?)\]\((.+?)\)` "\n=> $2 $1" }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 83ed937..a9fc62b 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -3,6 +3,7 @@
<p id="return"><a href="/" rel="noreferrer">🔗 Return to homepage</a></p>
</nav>
<main>
+ <h1 id="{{ .File.TranslationBaseName }}">{{ .Name }}</h1>
{{ .Content -}}
</main>
{{- end }}