From 8d7109a35f5571911857b72fce91dadfd02925ca Mon Sep 17 00:00:00 2001 From: Hanzei Date: Sun, 1 Jul 2018 10:22:28 +0200 Subject: [PATCH] Add open Graph meta data --- layouts/_default/baseof.html | 1 + layouts/index.html | 1 + layouts/partials/head/openGraph.html | 10 ++++++++++ 3 files changed, 12 insertions(+) create mode 100644 layouts/partials/head/openGraph.html diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index c3f6407..857da38 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -3,6 +3,7 @@ {{ block "head" . }} {{ partial "head/metadata.html" . }} + {{ partial "head/openGraph.html" . }} {{ partial "head/favicons.html" . }} {{ partial "head/css.html" . }} {{ end }} diff --git a/layouts/index.html b/layouts/index.html index 6d20825..69da4c6 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -2,6 +2,7 @@ {{ partial "head/metadata.html" . }} + {{ partial "head/openGraph.html" . }} {{ partial "head/favicons.html" . }} {{ partial "head/css.html" . }} diff --git a/layouts/partials/head/openGraph.html b/layouts/partials/head/openGraph.html new file mode 100644 index 0000000..736ba45 --- /dev/null +++ b/layouts/partials/head/openGraph.html @@ -0,0 +1,10 @@ + + + + + +{{ if .Params.image }} + +{{ else }} + +{{ end }}