Add link to author page on ebook page.

This commit is contained in:
Danny Bautista 2019-05-15 19:26:07 -04:00 committed by Alex Cabal
parent bd191254ae
commit 80e1ecc0d0
2 changed files with 8 additions and 1 deletions

View file

@ -610,6 +610,13 @@ article.ebook > header > div > p{
margin-top: 1rem;
}
article.ebook > header > div a,
article.ebook > header > div a:link,
article.ebook > header > div a:visited{
color: inherit;
text-decoration: none;
}
article.ebook > header > img{
width: 100%;
top: 0;

View file

@ -66,7 +66,7 @@ catch(\Exception $ex){
<div>
<h1><?= Formatter::ToPlainText($ebook->Title) ?></h1>
<? foreach($ebook->Authors as $author){ ?>
<p><?= Formatter::ToPlainText($author->Name) ?></p>
<p><a href="<?= Formatter::ToPlainText($ebook->AuthorsUrl) ?>"><?= Formatter::ToPlainText($author->Name) ?></a></p>
<? } ?>
</div>
<img src="<?= $ebook->HeroImage2xUrl ?>" alt="The cover for the Standard Ebooks edition of <?= $ebook->Title ?>." />