From b02433e5b1c7f7c469d80c2fafb58525f51094fa8e2c88fde14a0428d00a4d72 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Tue, 9 May 2023 00:00:00 +0000 Subject: Change variable name --- layouts/_default/single.gmi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'layouts/_default') 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 }} -- cgit v1.2.3