From 2905b27047c54133633ffe899e9911a0e928b860 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Fri, 18 Aug 2017 06:43:53 +0100 Subject: [PATCH] Add OpenGraph image tag and Twitter cards #8 #9 --- layouts/partials/header.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 3add522..d0c8b5f 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,13 +1,18 @@ - {{ partial "data/title" . }} + {{- partial "data/title" . -}} {{ .Hugo.Generator }} {{ "" | safeHTML }} + {{- template "_internal/opengraph.html" . -}} + {{ with .Params.image_filename }} + + {{ end }} + {{- template "_internal/twitter_cards.html" -}}

{{ .Site.Title }}