add the complete suite of og meta tags

This commit is contained in:
Greg Gauthier 2022-01-04 21:33:44 +00:00
parent 1832f3a863
commit 4fbab53d4c

View File

@ -5,15 +5,16 @@
{{if isset .Params "image"}}
{{if isset .Params "enclosure" }}
<meta property="og:image" content="{{.Site.Params.podcastCdnURL}}{{.Params.image}}">
<meta name="twitter:image" content="{{.Site.Params.podcastCdnURL}}{{.Params.image}}">
{{else}}
<meta property="og:image" content="{{.Site.Params.blogCdnURL}}{{.Params.image}}">
<meta name="twitter:image" content="{{.Site.Params.blogCdnURL}}{{.Params.image}}">
{{end}}
{{else}}
<meta property="og:image" content="{{.Site.BaseURL}}{{.Site.Params.avatar}}">
<meta name="twitter:image" content="{{.Site.BaseURL}}{{.Site.Params.avatar}}">
{{end}}
<meta property="og:title" content="{{.Params.Title}}">
<meta property="og:type" content="article">
<meta property="og:description" content="{{.Summary | safeHTML}}">
<meta property="og:url" content="{{.Permalink}}">
<meta name="description" content="{{ if .IsNode }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ else }}{{ with .Description }}{{ . }}{{ end }}{{ end }}">
{{hugo.Generator}}