aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicholasjohnson.ch>2023-01-25 00:00:00 +0000
committerNicholas Johnson <nick@nicholasjohnson.ch>2023-01-25 00:00:00 +0000
commit7060e338acd85057be0038b15f0fca711d5845d0660fc01741a4c6756c0b8bae (patch)
tree0442c1ca36dbc7059c7de1331b6f6fad1a019045c598590e6a014315c68cd4b1
parent3cd063f392ab3694e540fc018e886f5b6f93d965283b0f51f99d4db77f47aecf (diff)
downloadhugo-theme-journal-7060e338acd85057be0038b15f0fca711d5845d0660fc01741a4c6756c0b8bae.tar.gz
hugo-theme-journal-7060e338acd85057be0038b15f0fca711d5845d0660fc01741a4c6756c0b8bae.zip
Remove extra variable assignment
-rw-r--r--layouts/_default/single.gmi6
1 files changed, 2 insertions, 4 deletions
diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi
index 04c09de..9e454a8 100644
--- a/layouts/_default/single.gmi
+++ b/layouts/_default/single.gmi
@@ -35,13 +35,11 @@
{{- $cur_chunk = $cur_chunk | emojify }}
{{- if $before_pre }}
- {{- $before_pre = $cur_chunk }}
- {{- $before_pre | safeHTML }}
+ {{- $cur_chunk | safeHTML }}
{{- $pre | safeHTML }}
{{- else }}
- {{- $after_pre = $cur_chunk }}
{{- $pre | safeHTML }}
- {{- $after_pre | safeHTML }}
+ {{- $cur_chunk | safeHTML }}
{{- end }}
{{- end }}