summaryrefslogtreecommitdiff
path: root/layouts/_default/single.html
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicholasjohnson.ch>2023-08-25 00:00:00 +0000
committerNicholas Johnson <nick@nicholasjohnson.ch>2023-08-25 00:00:00 +0000
commit429e8b4e19365d921c01c5da45c6d4ce54f52a08ad168e3a3c54e17ba62bfa3a (patch)
tree63b2f8058dddae36c6630f015b1e9f7ddbb29c386dada53624a0d9282c3c4bbb /layouts/_default/single.html
parent66fb84d2f98eddb8e2168cac11b4b1a01d181217be82cda49ce6411eec3ec11c (diff)
downloadhugo-theme-journal-429e8b4e19365d921c01c5da45c6d4ce54f52a08ad168e3a3c54e17ba62bfa3a.tar.gz
hugo-theme-journal-429e8b4e19365d921c01c5da45c6d4ce54f52a08ad168e3a3c54e17ba62bfa3a.zip
chomp() user content
User content may contain newlines at the end of files, which create problems for spacing in Gemini.
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r--layouts/_default/single.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 52e7ad4..2819d29 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -6,6 +6,6 @@
<p>{{ partial "pageinfo.html" . }}</p>{{ end }}
<main>
<h1 id="{{ .File.TranslationBaseName }}">{{ .Name }}</h1>
- {{ .Content -}}
+ {{ chomp (.Content) -}}
</main>
{{- end }} \ No newline at end of file