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