Skip to content

Commit bf6c2be

Browse files
Fix link to books
The template for rendering books from YAML accidentally hardcoded the url instead of pulling it out of the data stream. Reported-by: Agron Metaj <agron-metaj@hotmail.com> Discussion: https://postgr.es/m/19585-7cd733cb26cda5d5@postgresql.org
1 parent 80da481 commit bf6c2be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

templates/docs/books.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ <h1>Books <i class="fas fa-book"></i></h1>
1414
{% for book in books %}
1515
<tr>
1616
<td>
17-
{% if book.url %}<a href="https://leanpub.com/deep-dive-into-a-sql-query">{% endif %}
17+
{% if book.url %}<a href="{{ book.url }}">{% endif %}
1818
<img class="bookcover" src="/media/img/empty.png" alt="{{ book.title }}" style="background-position-x: {% widthratio forloop.counter0 1 -131 %}px">
1919
{% if book.url %}</a>{% endif %}
2020
<td>

0 commit comments

Comments
 (0)