Only populate og:image with cover if is set
This commit is contained in:
parent
c6a38c4b85
commit
a53fe97fa1
@ -40,7 +40,7 @@
|
|||||||
<meta property="og:description" content="{{ if .IsHome }}{{ $.Site.Params.Subtitle }}{{ else }}{{ .Summary | plainify }}{{ end }}" />
|
<meta property="og:description" content="{{ if .IsHome }}{{ $.Site.Params.Subtitle }}{{ else }}{{ .Summary | plainify }}{{ end }}" />
|
||||||
<meta property="og:url" content="{{ .Permalink }}" />
|
<meta property="og:url" content="{{ .Permalink }}" />
|
||||||
<meta property="og:site_name" content="{{ .Title }}" />
|
<meta property="og:site_name" content="{{ .Title }}" />
|
||||||
<meta property="og:image" content="{{ if .IsHome }}{{ $.Site.Params.favicon | absURL }}{{else}}{{ .Params.Cover | absURL }}{{ end }}">
|
<meta property="og:image" content="{{ if .IsHome }}{{ $.Site.Params.favicon | absURL }}{{else}}{{ isset .Params "cover" | absURL }}{{ end }}">
|
||||||
<meta property="og:image:width" content="2048">
|
<meta property="og:image:width" content="2048">
|
||||||
<meta property="og:image:height" content="1024">
|
<meta property="og:image:height" content="1024">
|
||||||
{{ range .Params.categories }}
|
{{ range .Params.categories }}
|
||||||
|
Loading…
Reference in New Issue
Block a user