From b72f7a6ea0a5fd97f0b708713039dea13a156d12 Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Freeman <the@jeffreyfreeman.me> Date: Sun, 8 Oct 2023 02:23:46 -0400 Subject: [PATCH] Added better image handing for open-graph --- layouts/partials/head.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 27cd9bc8f..ad29f159b 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -27,6 +27,10 @@ {{if .Params.image_header}} <meta name="twitter:image" content="{{.Params.image_header}}"> + <meta property="og:image" content="{{.Params.image_header}}"> + {{ else if .IsHome }} + <meta name="twitter:image" content="/images/logo-header-light.png"> + <meta property="og:image" content="/images/logo-header-light.png"> {{else}} {{ $tags := .Params.tags}} {{ if .Params.social_image_url }} @@ -65,9 +69,9 @@ <meta name="description" content="{{ .Site.Params.Description }}"> <meta name="twitter:description" content="{{ .Site.Params.Description }}"> {{else}} - <meta name="og:description" content="FLEAR, An open-source and open-standards incubator for Ham Radio"> - <meta name="description" content="FLEAR, An open-source and open-standards incubator for Ham Radio"> - <meta name="twitter:description" content="FLEAR, An open-source and open-standards incubator for Ham Radio"> + <meta name="og:description" content="FLEAR is an open-source and open-standards incubator for Ham Radio"> + <meta name="description" content="FLEAR is an open-source and open-standards incubator for Ham Radio"> + <meta name="twitter:description" content="FLEAR is an open-source and open-standards incubator for Ham Radio"> {{end}} <script defer src="/_vercel/insights/script.js"></script> -- GitLab