From 91e2447abcef27ab77ccea1015155c0c3d19be9a Mon Sep 17 00:00:00 2001 From: Geri Ochoa Date: Tue, 8 Nov 2022 11:34:43 -0500 Subject: [PATCH] Fix readfile not rendering html code --- layouts/shortcodes/readfile.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/readfile.html b/layouts/shortcodes/readfile.html index 7d27caa35a..ce05aef322 100644 --- a/layouts/shortcodes/readfile.html +++ b/layouts/shortcodes/readfile.html @@ -32,7 +32,7 @@ {{- highlight ($.Scratch.Get "filepath" | readFile | htmlUnescape | safeHTML ) (.Get "lang") "" -}} {{ else }} - {{- $.Scratch.Get "filepath" | os.ReadFile | .Page.RenderString | htmlUnescape | safeHTML -}} + {{- $.Scratch.Get "filepath" | os.ReadFile | .Page.RenderString | safeHTML -}} {{ end }} {{ else }}