summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Johnson <>2026-09-05 00:00:00 +0000
committerNicholas Johnson <>2026-09-06 00:00:00 +0000
commited01d97ca07622a4adf87fc4e806c083c7d624b2ce463eef588149c86110077c (patch)
treec6ad6ff44c7257dbc8abec2b373702a02e8d8aba4676035a712ce3c047184b99
parentfe01d0e7afd53ef499567ff8bce4f2ea0b2355e6c9cac4a7ed2647fa749904d3 (diff)
downloadhugo-theme-journal-ed01d97ca07622a4adf87fc4e806c083c7d624b2ce463eef588149c86110077c.tar.gz
hugo-theme-journal-ed01d97ca07622a4adf87fc4e806c083c7d624b2ce463eef588149c86110077c.zip
Replace ".Name" with ".Title" for entry headings
I'm not sure if this change makes a difference, but .Title seems to be the canonical option in this context.
-rw-r--r--layouts/single.gmi2
-rw-r--r--layouts/single.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/single.gmi b/layouts/single.gmi
index 1502830..eb04578 100644
--- a/layouts/single.gmi
+++ b/layouts/single.gmi
@@ -8,7 +8,7 @@
{{ end }}
-# {{ .Name }}
+# {{ .Title }}
{{ $content := chomp (.RawContent) -}}
{{ $scratch := newScratch -}}
diff --git a/layouts/single.html b/layouts/single.html
index 67029c0..eb860b0 100644
--- a/layouts/single.html
+++ b/layouts/single.html
@@ -6,7 +6,7 @@
<p>{{ partial "pageinfo.html" . }}</p>
{{- end }}
<main class="main">
- <h1 id="{{ .File.TranslationBaseName }}">{{ .Name }}</h1>
+ <h1 id="{{ .File.TranslationBaseName }}">{{ .Title }}</h1>
{{ chomp (.Content) }}
</main>
{{- end }} \ No newline at end of file