summaryrefslogtreecommitdiff
path: root/design/templates/details/book.html
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2019-02-22 20:52:26 -0600
committerluxagraf <sng@luxagraf.net>2019-02-22 20:52:26 -0600
commit6fb35690da12077fda7d6cdc1e4da302db755963 (patch)
tree167dd841209c509fddcc74d9f6e4e58eaeca12f4 /design/templates/details/book.html
parent5813a02145c8f95c04a2fedfd9555b402d443e6b (diff)
changed book detail template slightly, added afflink
Diffstat (limited to 'design/templates/details/book.html')
-rw-r--r--design/templates/details/book.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/design/templates/details/book.html b/design/templates/details/book.html
index dd57d0a..3c08214 100644
--- a/design/templates/details/book.html
+++ b/design/templates/details/book.html
@@ -6,19 +6,22 @@
<li><a href="/books/" title="books" itemprop="url"><span itemprop="title">books</span></a> &rarr; </li>
</ul>
<main itemprop="mainEntity" itemscope itemtype="http://schema.org/Book">
+ <header class="tight">
<h1 class="post-title book-title" itemprop="name">{{object.title|smartypants|widont|safe}}</h1>
+ <h2 class="post-subtitle">by {{object.author_name}}</h2>
+ </header>
<div class="book-cover-wrapper">
<img src="{{object.get_image_url}}" alt="{{object.title}} cover" />
</div>
<div class="meta-cover">
<dl class="book-metadata">
- <dt>Author</dt>
- <dd>{{object.author_name}}</dd>
{% if object.publish_date %}<dt>Published</dt>
<dd>{%if object.publish_place%}{{object.publish_place}}, {%endif%}{{object.publish_date}}</dd>{%endif%}
{% if object.pages %}<dt>Pages</dt>
<dd>{{object.pages}}</dd>{%endif%}
{% if object.isbn %}<dt>ISBN</dt>
+ {% if object.afflink %}<dt>Buy</dt>
+ <dd><a href="{{object.afflink}}" title="buy {{object.title}} at Amazon">Amzn</a></dd>{%endif%}
<dd>{{object.isbn}}</dd>{%endif%}
{% if object.isbn %}<dt>Borrow</dt>
<dd><a href="http://worldcat.org/isbn/{{object.isbn}}" title="find {{object.title}} in your local library">WorldCat</a></dd>{%endif%}