diff options
author | luxagraf <sng@luxagraf> | 2021-04-03 10:04:02 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf> | 2021-04-03 10:04:02 -0400 |
commit | 27b1e88388eee191bc0628a844a5f65e383ae7a5 (patch) | |
tree | 18a878781a285cb7db16bfdc3a8740a92153c7b0 | |
parent | f79cf2bc02bb560cc0d6cee4688366960ed7c5a1 (diff) |
books: fixed a bug in template and added a conditional for the affiliate
disclaimer
-rw-r--r-- | app/books/templates/books/book_detail.html | 3 | ||||
-rw-r--r-- | design/sass/screenv10.scss | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/app/books/templates/books/book_detail.html b/app/books/templates/books/book_detail.html index 6304562..2f31103 100644 --- a/app/books/templates/books/book_detail.html +++ b/app/books/templates/books/book_detail.html @@ -51,7 +51,8 @@ {% endif %}{% endfor %} </div> {%endif%} - <p class="small dis"><em>When you buy a book using the link above, I may earn a small affiliate commission.</em></p> + {% if object.afflink %} + <p class="small dis"><em>When you buy a book using the link above, I may earn a small affiliate commission.</em></p>{%endif%} </div> </main> {% endblock %} diff --git a/design/sass/screenv10.scss b/design/sass/screenv10.scss index 07d9c8c..1adc558 100644 --- a/design/sass/screenv10.scss +++ b/design/sass/screenv10.scss @@ -1077,6 +1077,7 @@ p + .picwide { } .book-cover-wrapper img { margin-left: -.5rem; + max-width: 300px; } .book-metadata { font-family: mffnweb, Helvetica, sans-serif; |