summaryrefslogtreecommitdiff
path: root/design/templates/details/book.html
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2018-09-27 11:33:59 -0500
committerluxagraf <sng@luxagraf.net>2018-09-27 11:33:59 -0500
commit1596c642731e5839da942c7727bbc1fa8016fdee (patch)
treec8630e2332d4e40a3335a67f1931462eb020c700 /design/templates/details/book.html
parentefabaed1ef7ec2baafabed9dfd3c08dc192d98bd (diff)
version 9 of stylesheet
Diffstat (limited to 'design/templates/details/book.html')
-rw-r--r--design/templates/details/book.html85
1 files changed, 43 insertions, 42 deletions
diff --git a/design/templates/details/book.html b/design/templates/details/book.html
index c9e9089..dd57d0a 100644
--- a/design/templates/details/book.html
+++ b/design/templates/details/book.html
@@ -1,50 +1,51 @@
{% extends 'base.html' %}
{% load typogrify_tags %}
-{%block bodyid%}id="book-page"{%endblock%}
+{%block bodyid%}class="detail"{%endblock%}
{% block primary %}<ul class="bl" id="breadcrumbs" itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<li><a href="/" title="luxagraf homepage" itemprop="url"><span itemprop="title">Home</span></a> &rarr; </li>
<li><a href="/books/" title="books" itemprop="url"><span itemprop="title">books</span></a> &rarr; </li>
</ul>
- <main role="main" itemprop="mainEntity" itemscope itemtype="http://schema.org/Book">
- <h1 class="book-title" itemprop="name">{{object.title|smartypants|widont|safe}}</h1>
- <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>
- <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%}
- {% if object.rating %}<dt>Rating</dt><dd class="book-stars" itemprop="reviewRating"> {% for i in object.ratings_range %}{% if i <= object.get_rating%}&#9733;{%else%}&#9734;{%endif%}{%endfor%}</dd>{%endif%}
- {% if object.read_in %}<dt>Read</dt>
- <dd>{{object.read_in}}</dd>{%endif%}
- </dl>
- </div>{%if object.body_html%}
- <div class="thoughts" itemprop="review" itemscope itemtype="http://schema.org/Review">
- <h5>Notes</h5>
- <span class="hide" itemprop="reviewRating">{{object.rating}}</span>
- <meta itemprop="author" value="Scott Gilbertson" />
- <meta itemprop="datePublished" content="{{object.read_date|date:"c"}}">
- <div itemprop="reviewBody">{{object.body_html|safe|smartypants|widont}}</div>
-
- </div>{%endif%}
- {% if object.bookhighlight_set.all %}
- <div class="highlights">
- <h4>Highlights:</h4>
- {% for object in object.bookhighlight_set.all reversed %}
- <article class="h-entry hentry post--article book" itemscope itemType="http://schema.org/Article">
- <a class="highlink" name="h{{forloop.counter}}-page-{{object.page}}" href="#h{{forloop.counter}}-page-{{object.page}}">&para;</a>
- {{object.body_html|safe|amp|smartypants}}
- <p class="foot">page: {{object.page}} {% if object.location %}<small>kindle location: {{object.location|cut:"["|cut:"]"}}</small>{%endif%}</p>
- </article>
- {% endfor %}
- </div>
- {%endif%}
-</main>
+ <main itemprop="mainEntity" itemscope itemtype="http://schema.org/Book">
+ <h1 class="post-title book-title" itemprop="name">{{object.title|smartypants|widont|safe}}</h1>
+ <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>
+ <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%}
+ {% if object.rating %}<dt>Rating</dt><dd class="book-stars" itemprop="reviewRating"> {% for i in object.ratings_range %}{% if i <= object.get_rating%}&#9733;{%else%}&#9734;{%endif%}{%endfor%}</dd>{%endif%}
+ {% if object.read_in %}<dt>Read</dt>
+ <dd>{{object.read_in}}</dd>{%endif%}
+ </dl>
+ </div>{%if object.body_html%}
+ <div class="thoughts" itemprop="review" itemscope itemtype="http://schema.org/Review">
+ <h5>Notes</h5>
+ <span class="hide" itemprop="reviewRating">{{object.rating}}</span>
+ <meta itemprop="author" value="Scott Gilbertson" />
+ <meta itemprop="datePublished" content="{{object.read_date|date:"c"}}">
+ <div itemprop="reviewBody">{{object.body_html|safe|smartypants|widont}}</div>
+ </div>{%endif%}
+ {% if object.bookhighlight_set.all %}
+ <div class="highlights">
+ <h4>Highlights:</h4>
+ {% for object in object.bookhighlight_set.all reversed %}
+ <article class="h-entry hentry post--article book" itemscope itemType="http://schema.org/Article">
+ <a class="highlink" name="h{{forloop.counter}}-page-{{object.page}}" href="#h{{forloop.counter}}-page-{{object.page}}">&para;</a>
+ {{object.body_html|safe|amp|smartypants}}
+ <p class="foot">page: {{object.page}} {% if object.location %}<small>kindle location: {{object.location|cut:"["|cut:"]"}}</small>{%endif%}</p>
+ </article>
+ {% endfor %}
+ </div>
+ {%endif%}
+ </main>
{% endblock %}