Add partial to support og:image tag from page frontmatter

This commit is contained in:
Joey Hafner 2024-06-29 23:45:48 -07:00
parent 692362ff11
commit 84c18e6370

View File

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