From: bep Date: Sun, 1 Feb 2015 18:56:21 +0000 (+0100) Subject: Use .Site.Params.description as fallback for social partials X-Git-Tag: v0.13~73 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=13d900940650040fa2b945449e235bade4ea751e;p=brevno-suite%2Fhugo Use .Site.Params.description as fallback for social partials --- 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 }}