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 "image"}}
|
||||||
{{if isset .Params "enclosure" }}
|
{{if isset .Params "enclosure" }}
|
||||||
<meta property="og:image" content="{{.Site.Params.podcastCdnURL}}{{.Params.image}}">
|
<meta property="og:image" content="{{.Site.Params.podcastCdnURL}}{{.Params.image}}">
|
||||||
<meta name="twitter:image" content="{{.Site.Params.podcastCdnURL}}{{.Params.image}}">
|
|
||||||
{{else}}
|
{{else}}
|
||||||
<meta property="og:image" content="{{.Site.Params.blogCdnURL}}{{.Params.image}}">
|
<meta property="og:image" content="{{.Site.Params.blogCdnURL}}{{.Params.image}}">
|
||||||
<meta name="twitter:image" content="{{.Site.Params.blogCdnURL}}{{.Params.image}}">
|
|
||||||
{{end}}
|
{{end}}
|
||||||
{{else}}
|
{{else}}
|
||||||
<meta property="og:image" content="{{.Site.BaseURL}}{{.Site.Params.avatar}}">
|
<meta property="og:image" content="{{.Site.BaseURL}}{{.Site.Params.avatar}}">
|
||||||
<meta name="twitter:image" content="{{.Site.BaseURL}}{{.Site.Params.avatar}}">
|
|
||||||
{{end}}
|
{{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 }}">
|
<meta name="description" content="{{ if .IsNode }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ else }}{{ with .Description }}{{ . }}{{ end }}{{ end }}">
|
||||||
{{hugo.Generator}}
|
{{hugo.Generator}}
|
||||||
|
Loading…
Reference in New Issue
Block a user