From 16306fd0aec1bdc45f567c1424f89c1dddc964e7 Mon Sep 17 00:00:00 2001 From: Ricardo N Feliciano Date: Fri, 21 Sep 2018 17:56:00 -0400 Subject: [PATCH] Use safeHTMLAttr instead of safeHTML for HTML attributes. --- tpl/tplimpl/embedded/templates.autogen.go | 11 ++++++----- tpl/tplimpl/embedded/templates/opengraph.html | 10 +++++----- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/tpl/tplimpl/embedded/templates.autogen.go b/tpl/tplimpl/embedded/templates.autogen.go index b185ec1bbd8..5d319bff01f 100644 --- a/tpl/tplimpl/embedded/templates.autogen.go +++ b/tpl/tplimpl/embedded/templates.autogen.go @@ -180,13 +180,13 @@ if (!doNotTrack) { {{ end }}{{ end }} {{- if .IsPage }} -{{- if not .PublishDate.IsZero }} -{{ else if not .Date.IsZero }} +{{- if not .PublishDate.IsZero }} +{{ else if not .Date.IsZero }} {{ end }} -{{- if not .Lastmod.IsZero }}{{ end }} +{{- if not .Lastmod.IsZero }}{{ end }} {{- else }} {{- if not .Date.IsZero }} - + {{- end }} {{- end }}{{/* .IsPage */}} @@ -218,7 +218,8 @@ if (!doNotTrack) { {{- end }}{{ end }} {{- /* Facebook Page Admin ID for Domain Insights */}} -{{- with .Site.Social.facebook_admin }}{{ end }}`}, +{{- with .Site.Social.facebook_admin }}{{ end }} +`}, {`pagination.html`, `{{ $pag := $.Paginator }} {{ if gt $pag.TotalPages 1 }}