From 8767bece60499dd47770fce90249a4f4666ebb22 Mon Sep 17 00:00:00 2001 From: shockrah Date: Wed, 22 Sep 2021 13:46:36 -0700 Subject: [PATCH] * Abs URL for url og tag + Support for video embed's ! Default case is still a fallback to using the image tag --- .../shockrah.xyz/layouts/partials/head.html | 22 +++++++++++++------ 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/themes/shockrah.xyz/layouts/partials/head.html b/themes/shockrah.xyz/layouts/partials/head.html index 07c0c69..c55a2ef 100644 --- a/themes/shockrah.xyz/layouts/partials/head.html +++ b/themes/shockrah.xyz/layouts/partials/head.html @@ -9,15 +9,23 @@ {{ $title }} - {{ $url := print .RelPermalink }} - + {{ $url := .RelPermalink | absURL }} + {{ $desc := print .Description }} {{ if .IsHome }}{{ $desc = .Params.Description }}{{end}} - {{ $ogimage := "/favicon.png" }} - {{ if .Params.Image }} - {{ $ogimage = .Params.Image }} - {{ end }} - + {{ $ogvideo := "" }} + {{ if .Params.Video }} + {{ $ogvideo = .Params.Video }} + + + + {{ else }} + {{ $ogimage := "/favicon.png" }} + {{ if .Params.Image }} + {{ $ogimage = .Params.Image }} + {{ end }} + + {{ end }}