mirror of
https://github.com/panr/hugo-theme-terminal.git
synced 2025-02-27 11:09:24 +03:00
Only populate og:image with cover if is set
This commit is contained in:
parent
c6a38c4b85
commit
a53fe97fa1
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@
|
|||
<meta property="og:description" content="{{ if .IsHome }}{{ $.Site.Params.Subtitle }}{{ else }}{{ .Summary | plainify }}{{ end }}" />
|
||||
<meta property="og:url" content="{{ .Permalink }}" />
|
||||
<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:height" content="1024">
|
||||
{{ range .Params.categories }}
|
||||
|
|
Loading…
Add table
Reference in a new issue