Update some titles for SEO

This commit is contained in:
Alex Cabal 2021-01-08 17:44:00 -06:00
parent d76de5b166
commit 9d8ee504e2
2 changed files with 5 additions and 5 deletions

View file

@ -68,7 +68,7 @@ catch(\Exception $ex){
include(WEB_ROOT . '/404.php'); include(WEB_ROOT . '/404.php');
exit(); exit();
} }
?><?= Template::Header(['title' => strip_tags($ebook->TitleWithCreditsHtml), 'ogType' => 'book', 'coverUrl' => $ebook->DistCoverUrl, 'highlight' => 'ebooks', 'description' => 'The Standard Ebooks edition of ' . $ebook->Title . ': ' . $ebook->Description]) ?> ?><?= Template::Header(['title' => strip_tags($ebook->TitleWithCreditsHtml) . ' - Free ebook download', 'ogType' => 'book', 'coverUrl' => $ebook->DistCoverUrl, 'highlight' => 'ebooks', 'description' => 'Free epub ebook download of the Standard Ebooks edition of ' . $ebook->Title . ': ' . $ebook->Description]) ?>
<main> <main>
<article class="ebook" typeof="schema:Book" about="<?= $ebook->Url ?>"> <article class="ebook" typeof="schema:Book" about="<?= $ebook->Url ?>">
<meta property="schema:bookFormat" content="EBook"/> <meta property="schema:bookFormat" content="EBook"/>

View file

@ -73,9 +73,9 @@ try{
$collectionType = ''; $collectionType = '';
} }
$pageTitle = 'Browse ebooks in the ' . Formatter::ToPlainText($collectionName) . $collectionType; $pageTitle = 'Browse free ebooks in the ' . Formatter::ToPlainText($collectionName) . $collectionType;
$pageDescription = 'A list of ebooks in the ' . Formatter::ToPlainText($collectionName) . ' ' . $collectionType; $pageDescription = 'A list of free ebooks in the ' . Formatter::ToPlainText($collectionName) . ' ' . $collectionType;
$pageHeader = 'Ebooks in the ' . Formatter::ToPlainText($collectionName) . ' ' . $collectionType; $pageHeader = 'Free ebooks in the ' . Formatter::ToPlainText($collectionName) . ' ' . $collectionType;
} }
else{ else{
throw new InvalidCollectionException(); throw new InvalidCollectionException();
@ -94,7 +94,7 @@ try{
if($page > 1){ if($page > 1){
$pageTitle .= ', page ' . $page; $pageTitle .= ', page ' . $page;
} }
$pageDescription = 'Page ' . $page . ' of the Standard Ebooks ebook library'; $pageDescription = 'Page ' . $page . ' of the Standard Ebooks free ebook library';
$queryString = ''; $queryString = '';