add series number on posts in the feed

This commit is contained in:
Braden Solt 2024-01-27 10:58:57 -07:00
parent 193aeff4d2
commit 629acbaa19
8 changed files with 37 additions and 1 deletions

View file

@ -9,12 +9,19 @@
{% if book.authors.exists %}
{% blocktrans trimmed with path=book.local_path title=book|book_title %}
<a href="{{ path }}">{{ title }}</a> by
<a href="{{ path }}">{{ title }}
</a>
by
{% endblocktrans %}&nbsp;{% include 'snippets/authors.html' with book=book limit=3 %}
{% else %}
<a href="{{ book.local_path }}">{{ book|book_title }}</a>
{% endif %}
{% if book.series %}
({{book.series}}{%if book.series_number %}, #{{book.series_number}}{% endif %})
{% endif %}
{% endcache %}
{% endspaceless %}

View file

@ -16,5 +16,9 @@ commented on <a href="{{ book_path }}">{{ book }}</a> by <a href="{{ author_path
commented on <a href="{{ book_path }}">{{ book }}</a>
{% endblocktrans %}
{% if book.series %}
({{book.series}}{%if book.series_number %}, #{{book.series_number}}{% endif %})
{% endif %}
{% endif %}
{% endwith %}

View file

@ -16,5 +16,9 @@ quoted <a href="{{ book_path }}">{{ book }}</a> by <a href="{{ author_path }}">{
quoted <a href="{{ book_path }}">{{ book }}</a>
{% endblocktrans %}
{% if book.series %}
({{book.series}}{%if book.series_number %}, #{{book.series_number}}{% endif %})
{% endif %}
{% endif %}
{% endwith %}

View file

@ -18,5 +18,9 @@ finished reading <a href="{{ book_path }}">{{ book }}</a> by <a href="{{ author_
finished reading <a href="{{ book_path }}">{{ book }}</a>
{% endblocktrans %}
{% if book.series %}
({{book.series}}{%if book.series_number %}, #{{book.series_number}}{% endif %})
{% endif %}
{% endif %}
{% endspaceless %}

View file

@ -12,6 +12,10 @@ started reading <a href="{{ book_path }}">{{ book }}</a> by <a href="{{ author_p
{% endblocktrans %}
{% endwith %}
{% if book.series %}
({{book.series}} {%if book.series_number %}#{{book.series_number}}) {% endif %}
{% endif %}
{% else %}
{% blocktrans trimmed with book_path=book.local_path book=book|book_title %}

View file

@ -16,5 +16,9 @@ reviewed <a href="{{ book_path }}">{{ book }}</a> by <a href="{{ author_path }}"
reviewed <a href="{{ book_path }}">{{ book }}</a>
{% endblocktrans %}
{% if book.series %}
({{book.series}}{%if book.series_number %}, #{{book.series_number}}{% endif %})
{% endif %}
{% endif %}
{% endwith %}

View file

@ -18,6 +18,10 @@ stopped reading <a href="{{ book_path }}">{{ book }}</a> by <a href="{{ author_p
stopped reading <a href="{{ book_path }}">{{ book }}</a>
{% endblocktrans %}
{% if book.series %}
({{book.series}}{%if book.series_number %}, #{{book.series_number}}{% endif %})
{% endif %}
{% endif %}
{% endspaceless %}

View file

@ -19,4 +19,9 @@ wants to read <a href="{{ book_path }}">{{ book }}</a>
{% endblocktrans %}
{% endif %}
{% if book.series %}
({{book.series}}{%if book.series_number %}, #{{book.series_number}}{% endif %})
{% endif %}
{% endspaceless %}