summaryrefslogtreecommitdiff
path: root/design/templates/details/book.html
diff options
context:
space:
mode:
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%}