add the complete suite of og meta tags
This commit is contained in:
parent
1832f3a863
commit
4fbab53d4c
@ -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}}
|
||||
|
Loading…
Reference in New Issue
Block a user