Skip to content

Commit

Permalink
Fix readfile not rendering html code
Browse files Browse the repository at this point in the history
  • Loading branch information
geriom committed Nov 11, 2022
1 parent 90ee481 commit 246a2e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/shortcodes/readfile.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down

0 comments on commit 246a2e1

Please sign in to comment.