diff options
author | luxagraf <sng@luxagraf.net> | 2019-12-24 07:23:23 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2019-12-24 07:23:23 -0500 |
commit | e47d256783c9d466ab34b0632c70ac767011f91e (patch) | |
tree | 8aec1159be07aea4b132ca4180dad59ad6859d24 /design/templates | |
parent | 6288785513e1d4590e14c3abfa70c700b6398c64 (diff) |
added disclaimer to book pages
Diffstat (limited to 'design/templates')
-rw-r--r-- | design/templates/base.html | 1 | ||||
-rw-r--r-- | design/templates/details/book.html | 8 |
2 files changed, 7 insertions, 2 deletions
diff --git a/design/templates/base.html b/design/templates/base.html index fbbd0ae..67edd7a 100644 --- a/design/templates/base.html +++ b/design/templates/base.html @@ -43,6 +43,7 @@ </div> {% block primary %}{% endblock %} {% block extrabody %}{% endblock %} + {% block disclaimer %}{% endblock%} <footer class="bl"> <ul class="footer-nav"> <li><a href="/blogroll" title="Sites that inspire us">Blogroll</a></li> diff --git a/design/templates/details/book.html b/design/templates/details/book.html index 808d253..8a87ae5 100644 --- a/design/templates/details/book.html +++ b/design/templates/details/book.html @@ -46,7 +46,7 @@ {% if object.bookhighlight_set.all %} <div class="highlights"> <h4>Highlights:</h4> - {% for object in object.bookhighlight_set.all reversed %} + {% for object in object.bookhighlight_set.all %} <div class="h-entry hentry post--article book"> <a class="highlink" id="h{{forloop.counter}}-page-{{object.page}}" href="#h{{forloop.counter}}-page-{{object.page}}">¶</a> <div class="book-highlight"> @@ -59,4 +59,8 @@ {%endif%} </main> {% endblock %} - +{% block disclaimer %} +<div class="highlights"> + <p class="dis"><em>When you buy a book using the link above, I may earn a small affiliate commission.</em></p> +</div> +{% endblock %} |