From 034e8145c95b20f8c7359e40cbc96a4653bd493d Mon Sep 17 00:00:00 2001 From: Daniel Barber Date: Sun, 27 Oct 2019 13:58:49 -0400 Subject: [PATCH] Add OG data --- layouts/partials/head.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 563887cd..5694cd8c 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -40,3 +40,19 @@ + +{{ if .Title }} + +{{ else }} + +{{ end }} + + +{{ if .Params.image }} + {{ $imageSize := default "600x600" }} + {{ $src := .Page.Resources.GetMatch (.Params.image) }} + {{ $image := $src.Fit $imageSize }} + +{{ end }} + +