Use PNG as meta image since SVG is unsupported

Also use the homepage image instead of the logo because:

1. It's more visually appealing
2. It's what facebook is already using

https://developers.facebook.com/tools/debug/?q=https%3A%2F%2Fstandardebooks.org%2F
This commit is contained in:
Guilherme Simoes 2020-12-07 02:42:54 +00:00 committed by Alex Cabal
parent d27648c891
commit 27f7862ae9

View file

@ -45,7 +45,7 @@ print("\n");
<meta content="<? if($title != ''){ ?><?= Formatter::ToPlainText($title) ?><? }else{ ?>Standard Ebooks<? } ?>" property="og:title"/>
<meta content="<?= $ogType ?? 'website' ?>" property="og:type"/>
<meta content="<?= SITE_URL . str_replace(SITE_URL, '', ($_SERVER['ORIG_PATH_INFO'] ?? $_SERVER['SCRIPT_URI'] ?? '')) ?>" property="og:url"/>
<meta content="<?= SITE_URL . ($coverUrl ?? '/images/logo.svg') ?>" property="og:image"/>
<meta content="<?= SITE_URL . ($coverUrl ?? '/images/devices@2x.png') ?>" property="og:image"/>
<meta content="summary_large_image" name="twitter:card"/>
<meta content="@standardebooks" name="twitter:site"/>
<meta content="@standardebooks" name="twitter:creator"/>