Tweak semantics and contribute index page

This commit is contained in:
Alex Cabal 2024-12-31 11:08:21 -06:00
parent b8c4de4b20
commit b8def40795
18 changed files with 53 additions and 31 deletions

View file

@ -97,7 +97,7 @@ catch(Exceptions\EbookNotFoundException){
But, each author is an individual, so we have to differentiate them in RDFa with `resource`.
*/ ?>
<? if($author->Name != 'Anonymous'){ ?>
<h2>
<p>
<a property="schema:author" typeof="schema:Person" href="<?= Formatter::EscapeHtml($ebook->AuthorsUrl) ?>" resource="<?= '/ebooks/' . $author->UrlName ?>">
<span property="schema:name"><?= Formatter::EscapeHtml($author->Name) ?></span>
<meta property="schema:url" content="<?= SITE_URL . Formatter::EscapeHtml($ebook->AuthorsUrl) ?>"/>
@ -108,7 +108,7 @@ catch(Exceptions\EbookNotFoundException){
<meta property="schema:sameAs" content="<?= Formatter::EscapeHtml($author->WikipediaUrl) ?>"/>
<? } ?>
</a>
</h2>
</p>
<? } ?>
<? } ?>
</hgroup>