mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-05-13 06:34:24 -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 }}
|
{{- if .Content }}
|
||||||
<div class="post-content">
|
<div class="post-content">
|
||||||
{{- if not (.Param "disableAnchoredHeadings") }}
|
{{- if not (.Param "disableAnchoredHeadings") }}
|
||||||
{{- partial "anchored_headings.html" .Content -}}
|
{{- partial "anchored_headings.html" .Content | safe.HTML -}}
|
||||||
{{- else }}{{ .Content }}{{ end }}
|
{{- else }}{{ .Content | safe.HTML }}{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue