og image width/height metadata for facebook

This commit is contained in:
wgroeneveld 2020-11-24 21:44:47 +01:00
parent 0a872ee8f1
commit 2572a6e8d4
1 changed files with 4 additions and 1 deletions

View File

@ -28,7 +28,10 @@
{{- $imgsmall := $image.Resize "768x jpg q70" }}
{{- $imgmedium := $image.Resize "960x jpg q85" }}
<meta property="og:image" content="{{.Site.BaseURL}}{{ $imgsmall.RelPermalink }}" />
<meta property="og:image" content="{{ $imgsmall.RelPermalink }}" />
<meta property="og:image:width" content="{{ $imgsmall.Width }}" />
<meta property="og:image:height" content="{{ $imgsmall.Height }}" />
<style>
.big-img {
background-image: url({{ $imgsmall.RelPermalink }}) !important;