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 }} + +