Fix pages with no explicitly-set og:image value falling back to missing image file

This commit is contained in:
Joey Hafner 2024-06-30 01:29:19 -07:00
parent 5983558a8e
commit 98f5c3e7c1

View File

@ -1,3 +1,3 @@
<meta property="article:author" content="{{ if .Params.author }}{{ .Params.author }}{{ else }}{{ range .Site.Author }}{{ . }} {{ end }}{{ end }}">
<meta property="og:image" content="{{ if .Page.Params.ogimage }}{{ .Page.Params.ogimage }}{{ else }}img/logo.png{{ end }}">
<meta property="og:image" content="{{ if .Page.Params.ogimage }}{{ .Page.Params.ogimage }}{{ else }}img/Jafner.dev.logo.png{{ end }}">
<meta name="og:site_name" content="Jafner.dev"/>