Merge pull request #65 from githubmonkey/minor-polishes

Add safeHTML to blog-title, allowing <br/> in the title
This commit is contained in:
zjedi 2023-03-11 16:00:24 +01:00 committed by GitHub
commit 4f61fb73ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,7 @@
<div class="vertical">
<div id="site-head-content" class="inner">
{{ with .Params.header_headline }}<h1 class="blog-title">{{ . }}</h1>{{ end }}
{{ with .Params.header_headline }}<h1 class="blog-title">{{ . | safeHTML }}</h1>{{ end }}
{{ with .Params.header_subheadline }}<h2 class="blog-description">{{ . }}</h2>{{ end }}
{{ range where $sections ".Params.header_menu" "eq" true }}