aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicholasjohnson.ch>2023-01-21 00:00:00 +0000
committerNicholas Johnson <nick@nicholasjohnson.ch>2023-01-21 00:00:00 +0000
commit112abca730d7585e548fedf58162e098eb4304b357ca3f0c47fed4f5d7cb960e (patch)
tree25a5fd01aaad8ff76b1187c75788cd97f66e8d82405fff9d52d4431432705cb1
parentde43c232ef7de4cfff6f2779c0d7918fb5ca85b8a077d03957617965e64f541b (diff)
downloadhugo-theme-journal-112abca730d7585e548fedf58162e098eb4304b357ca3f0c47fed4f5d7cb960e.tar.gz
hugo-theme-journal-112abca730d7585e548fedf58162e098eb4304b357ca3f0c47fed4f5d7cb960e.zip
Fix typo
-rw-r--r--layouts/_default/single.gmi2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi
index fe5dd83..7c110ee 100644
--- a/layouts/_default/single.gmi
+++ b/layouts/_default/single.gmi
@@ -22,7 +22,7 @@
{{- $scratch.Set "content" $contentInLoop }}
{{- $scratch.Set "ref" (add $ref 1) }}
{{- end }}
-{{- $content := $scratch.Get "content" | replaceRE `\[(.+?)\]\((.+?)\) #(\d+)` "$1[$3]" }}
+{{- $content = $scratch.Get "content" | replaceRE `\[(.+?)\]\((.+?)\) #(\d+)` "$1[$3]" }}
{{- else }}
{{- $content = $content | replaceRE `\n\[(.+?)\]\((.+?)\)` (print "\n=> $2 " $emoji "$1") }}
{{- end }}