From 73f8fac2b5dce62cc58d1009730397cba8dd0745 Mon Sep 17 00:00:00 2001 From: Adrien nayrat Date: Thu, 26 Oct 2017 23:06:32 +0200 Subject: [PATCH] Add Twitter card and Open Graph metadata (#358) --- layouts/partials/header.html | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index b0ff5143..59b8fb19 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -74,6 +74,33 @@ + + {{ range where $.Site.Params.social ".icon" "twitter" }} + + + {{ end }} + + + + + {{- with .Params.header.image }}{{end}} + + {{ if .IsPage }} + {{ if not .PublishDate.IsZero }} + {{ else if not .Date.IsZero }}{{ end }} + {{ if not .Lastmod.IsZero }}{{ end }} + {{ else }} + {{ if not .Date.IsZero }}{{ end }} + {{ end }} + {{ partial "head_custom" . }} {{ if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }}