subtitle Support for HTML syntax

Support for HTML syntax to avoid escaping by Go templates
This commit is contained in:
Hstar 2021-12-14 14:23:27 +08:00 committed by GitHub
parent 359e4b34c1
commit 968b702392
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,7 @@
{{ end }}
<h1 class="site-name"><a href="{{ .Site.BaseURL | relLangURL }}">{{ .Site.Title }}</a></h1>
<h2 class="site-description">{{ .Site.Params.sidebar.subtitle }}</h2>
<h2 class="site-description">{{ .Site.Params.sidebar.subtitle | safeHTML }}</h2>
{{- with .Site.Menus.social -}}
<ol class="social-menu">