theme: Create code block render hook

This commit is contained in:
Joe Mooring authored and Joe Mooring committed 2025-03-05 17:03:42 -08:00
1 parent 4cdde66496
commit 71d8426ee6
5 files changed
+75 -9

No files matched your search

+1 -1
View File
@@ -32,7 +32,7 @@ For example:
When using `transform.XMLEscape` in a template rendered by Go's [html/template] package, declare the string to be safe HTML to avoid double escaping. For example, in an RSS template:
{{< code file="layouts/_default/rss.xml" >}}
{{< code file=layouts/_default/rss.xml >}}
<description>{{ .Summary | transform.XMLEscape | safeHTML }}</description>
{{< /code >}}