mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-05-12 22:25:43 -04:00
Declare content as a safeHTML string.
This commit is contained in:
parent
72615b6d49
commit
1a8edfc0c8
1 changed files with 2 additions and 2 deletions
|
@ -37,8 +37,8 @@
|
|||
{{- if .Content }}
|
||||
<div class="post-content">
|
||||
{{- if not (.Param "disableAnchoredHeadings") }}
|
||||
{{- partial "anchored_headings.html" .Content -}}
|
||||
{{- else }}{{ .Content }}{{ end }}
|
||||
{{- partial "anchored_headings.html" .Content | safe.HTML -}}
|
||||
{{- else }}{{ .Content | safe.HTML }}{{ end }}
|
||||
</div>
|
||||
{{- end }}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue