From 13d900940650040fa2b945449e235bade4ea751e Mon Sep 17 00:00:00 2001 From: bep Date: Sun, 1 Feb 2015 19:56:21 +0100 Subject: [PATCH] Use .Site.Params.description as fallback for social partials --- tpl/template_embedded.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tpl/template_embedded.go b/tpl/template_embedded.go index bb946a51..9b519494 100644 --- a/tpl/template_embedded.go +++ b/tpl/template_embedded.go @@ -127,7 +127,7 @@ func (t *GoHtmlTemplate) EmbedTemplates() { // Add SEO & Social metadata t.AddInternalTemplate("", "opengraph.html", ` - + {{ with .Params.images }}{{ range first 6 . }} @@ -177,7 +177,7 @@ func (t *GoHtmlTemplate) EmbedTemplates() { - + {{ with .Site.Social.twitter }}{{ end }} {{ with .Site.Social.twitter_domain }}{{ end }} {{ range .Site.Authors }} @@ -190,7 +190,7 @@ func (t *GoHtmlTemplate) EmbedTemplates() { t.AddInternalTemplate("", "schema.html", `{{ with .Site.Social.GooglePlus }}{{ end }} - + {{if .IsPage}}{{ $ISO8601 := "2006-01-02T15:04:05-07:00" }}{{ if not .PublishDate.IsZero }} {{ end }} -- 2.30.2