summaryrefslogtreecommitdiff
path: root/design/templates/details/book.html
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2016-02-07 20:26:58 -0500
committerluxagraf <sng@luxagraf.net>2016-02-07 20:26:58 -0500
commit09756d90d71711749512af471f2faf1f57cc639f (patch)
treee9ef2600c0964756f7ef04ab1d1f5ada8311dd4a /design/templates/details/book.html
parentaa65ac8c06d493a35a5822c85f882da3ef9022f4 (diff)
added in-page links to book highlights for easier linking
Diffstat (limited to 'design/templates/details/book.html')
-rw-r--r--design/templates/details/book.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/design/templates/details/book.html b/design/templates/details/book.html
index e1d211a..c9e9089 100644
--- a/design/templates/details/book.html
+++ b/design/templates/details/book.html
@@ -38,8 +38,9 @@
<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">
- {{object.body_html|safe|amp|smartypants}}
- <p class="foot">page: {{object.page}} <small>kindle location: {{object.location|cut:"["|cut:"]"}}</small></p>
+ <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>