card images for all content types
This commit is contained in:
parent
ce02bcb106
commit
1832f3a863
@ -1,8 +1,20 @@
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
{{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 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