From d8be1752337e87b1dd27fcb3da4d3c941bad4c19 Mon Sep 17 00:00:00 2001 From: Florian Kohrt Date: Mon, 4 Jan 2021 20:00:43 +0100 Subject: [PATCH] Declare copyright string as safe to allow HTML to be rendered Fix #95 --- layouts/index.xml | 4 ++-- layouts/partials/footer.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/index.xml b/layouts/index.xml index faf0a1c..e37b427 100644 --- a/layouts/index.xml +++ b/layouts/index.xml @@ -6,7 +6,7 @@ Hugo -- gohugo.io{{ with .Site.LanguageCode }} {{.}}{{end}}{{ with .Site.Author.email }} {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright | safeHTML }} {{.}}{{end}}{{ if not .Date.IsZero }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} {{ with .OutputFormats.Get "RSS" }} @@ -23,4 +23,4 @@ {{ end }} - \ No newline at end of file + diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 35f8718..c825056 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -36,7 +36,7 @@

{{ . }}

@@ -45,4 +45,4 @@