safeHTML used for header, footer and content titles

This commit is contained in:
zjedi 2023-03-21 00:30:33 +01:00
parent 62c402673b
commit 4902a83bfd
3 changed files with 9 additions and 6 deletions

View file

@ -1,14 +1,16 @@
<footer class="site-footer">
<div class="inner">
{{ with .Site.Params.copyright }}
<section class="copyright">{{ . | markdownify }}</section>{{ end }}
<section class="copyright">{{ . | safeHTML }}</section>
{{ end }}
<section>{{ echoParam .Site.Params "hidebyline" }}</section>
{{ if ne .Site.Params.hidedesignbyline true }}
<section>
<a href="https://themes.gohugo.io/hugo-scroll/">Hugo Scroll</a> template
</section>{{ end }}
</section>
{{ end }}
</div>
</footer>