aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicholasjohnson.ch>2023-05-09 00:00:00 +0000
committerNicholas Johnson <nick@nicholasjohnson.ch>2023-05-09 00:00:00 +0000
commitb02433e5b1c7f7c469d80c2fafb58525f51094fa8e2c88fde14a0428d00a4d72 (patch)
tree76753cb83a56eaa94b3ae38da35e3987a33fe6cafc2998d6bbf3a1e873104eb0
parent7a47ff5e8775f0235f1f13e59375aa46b5d869706592c70c012eae7905416758 (diff)
downloadhugo-theme-journal-b02433e5b1c7f7c469d80c2fafb58525f51094fa8e2c88fde14a0428d00a4d72.tar.gz
hugo-theme-journal-b02433e5b1c7f7c469d80c2fafb58525f51094fa8e2c88fde14a0428d00a4d72.zip
Change variable name
-rw-r--r--layouts/_default/single.gmi8
1 files changed, 4 insertions, 4 deletions
diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi
index ff4af95..cba2c68 100644
--- a/layouts/_default/single.gmi
+++ b/layouts/_default/single.gmi
@@ -13,11 +13,11 @@
{{- $ref_index := 0 }}
{{- range $chunks }}
- {{- $before_pre := index . 1 }}
+ {{- $above_pre := index . 1 }}
{{- $pre := index . 2 }}
- {{- $after_pre := index . 3 }}
+ {{- $below_pre := index . 3 }}
- {{- $rendered_text := print $before_pre $after_pre }}
+ {{- $rendered_text := print $above_pre $below_pre }}
{{- if ($.Page.Params.makerefs | default true) }}
{{- $chunk_refs := findRESubmatch `!?\[\s*(.+?)\s*\]\(\s*(.+?)(?:\s+"(.+?)")?\s*\)` $rendered_text }}
@@ -37,7 +37,7 @@
{{- $rendered_text = $rendered_text | replaceRE `(?m)^[-+] ` "* " }}
{{- $rendered_text = $rendered_text | emojify }}
- {{- if $before_pre }}
+ {{- if $above_pre }}
{{- $rendered_text | safeHTML }}
{{- $pre | safeHTML }}
{{- else }}