mirror of
https://github.com/standardebooks/web.git
synced 2025-07-16 11:26:37 -04:00
Tweak semantics and contribute index page
This commit is contained in:
parent
b8c4de4b20
commit
b8def40795
18 changed files with 53 additions and 31 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue