Improve Open Graph data

This commit is contained in:
Alex Cabal 2018-12-30 18:23:58 -06:00
parent 45078afb2a
commit 5e23dc069e
6 changed files with 457 additions and 67 deletions

View file

@ -53,7 +53,7 @@ catch(\Exception $ex){
include(SITE_ROOT . '/www/404.php');
exit();
}
?><?= Template::Header(['title' => strip_tags($ebook->TitleWithCreditsHtml), 'highlight' => 'ebooks', 'description' => 'The Standard Ebooks edition of ' . $ebook->Title . ': ' . $ebook->Description, 'jsonld' => $ebook->GenerateJsonLd()]) ?>
?><?= Template::Header(['title' => strip_tags($ebook->TitleWithCreditsHtml), 'ogType' => 'book', 'coverUrl' => $ebook->DistCoverUrl, 'highlight' => 'ebooks', 'description' => 'The Standard Ebooks edition of ' . $ebook->Title . ': ' . $ebook->Description, 'jsonld' => $ebook->GenerateJsonLd()]) ?>
<main>
<article class="ebook">
<header>