og:image using icon512

This commit is contained in:
Gabriele Musco 2022-03-10 11:35:04 +01:00
parent 5de16a03ce
commit 23381aaf63
No known key found for this signature in database
GPG Key ID: 0587A5D65B5DC99E
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@
<meta property="og:url" content="{{ .Permalink }}" />
<meta property="og:image"
content='{{ if .Params.Image }}{{ .Params.Image | absURL }}
{{ else }}{{ .Site.Params.Logo | default "/img/icon.svg" | absURL }}
{{ else }}{{ .Site.Params.icon512 | default "/img/icon.svg" | absURL }}
{{ end }}' />
{{ if .Params.description }}
<meta property="og:description" content="{{ .Params.description }}" />
@ -32,5 +32,5 @@
{{ end }}
<meta property="og:type" content="blog" />
<meta property="og:image"
content='{{ .Site.Params.Logo | default "/img/icon.svg" | absURL }}' />
content='{{ .Site.Params.icon512 | default "/img/icon.svg" | absURL }}' />
{{ end }}