diff options
Diffstat (limited to 'design/templates/details/book.html')
-rw-r--r-- | design/templates/details/book.html | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/design/templates/details/book.html b/design/templates/details/book.html index f7bba47..2ae6b86 100644 --- a/design/templates/details/book.html +++ b/design/templates/details/book.html @@ -34,7 +34,7 @@ <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="author" content="Scott Gilbertson" /> <meta itemprop="datePublished" content="{{object.read_date|date:"c"}}"> <div itemprop="reviewBody">{{object.body_html|safe|smartypants|widont}}</div> </div>{%endif%} @@ -42,11 +42,13 @@ <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}}">¶</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> + <div class="h-entry hentry post--article book" itemscope itemType="http://schema.org/Article"> + <a class="highlink" id="h{{forloop.counter}}-page-{{object.page}}" href="#h{{forloop.counter}}-page-{{object.page}}">¶</a> + <div class="book-highlight"> + {{object.body_html|safe|amp|smartypants}} + </div> + <p class="foot">– Page: {{object.page}} {% if object.location %}(Kindle location: {{object.location|cut:"["|cut:"]"}}){%endif%}</p> + </div> {% endfor %} </div> {%endif%} |