safeHTML used for header, footer and content titles
This commit is contained in:
parent
62c402673b
commit
4902a83bfd
3 changed files with 9 additions and 6 deletions
|
|
@ -10,7 +10,7 @@
|
|||
{{ with .Params.header_logo }}<img id="blog-logo" src="{{ . }}" />{{ end }}
|
||||
{{ if .Site.Params.title_guard }}<div class="title-and-description-guard">{{ end }}
|
||||
{{ with .Params.header_headline }}<h1 class="blog-title">{{ . | safeHTML }}</h1>{{ end }}
|
||||
{{ with .Params.header_subheadline }}<h2 class="blog-description">{{ . }}</h2>{{ end }}
|
||||
{{ with .Params.header_subheadline }}<h2 class="blog-description">{{ . | safeHTML }}</h2>{{ end }}
|
||||
{{ if .Site.Params.title_guard }}</div>{{ end }}
|
||||
{{ range where $sections ".Params.header_menu" "eq" true }}
|
||||
{{ if isset .Params "external" }}
|
||||
|
|
@ -31,7 +31,7 @@
|
|||
<div class='post-holder'>
|
||||
<article id='{{ anchorize .Title }}' class='post {{ if eq $index_val 0 }}first{{ end }} {{ if eq (add $index_val 1) (len $sections) }}last{{ end }}'>
|
||||
<header class="post-header">
|
||||
<h2 class="post-title">{{ .Title }}</h2>
|
||||
<h2 class="post-title">{{ .Title | safeHTML }}</h2>
|
||||
</header>
|
||||
<section class="post-content">
|
||||
{{ .Content }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue