diesdasdigital / kirby-meta-knight

🔍 Meta Knight – SEO & Social Media Sharing Plugin for Kirby.
MIT License
109 stars 18 forks source link

OG width and height meta fields... #17

Closed AhoyLemon closed 3 years ago

AhoyLemon commented 3 years ago

In the past when I've done OpenGraph stuff, I've had validators come back and say they'd prefer the site explicitly listed the height and width of the og:image. The plugin 'does' do crops, but apparently it's still good practice to include...

<meta property="og:width" content="<?= $ogimage->thumb($og_image)->toFile()->width() ?>">
<meta property="og:height" content="<?= $ogimage->thumb($og_image)->toFile()->height() ?>">

...as well.

jonathanmuth commented 3 years ago

Thanks for point this out. I will include og:width and og:height in the next release.

jonathanmuth commented 3 years ago

Added in 1.1.1