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 %} {% if book.authors.exists %}
{% blocktrans trimmed with path=book.local_path title=book|book_title %} {% 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 %} {% endblocktrans %}&nbsp;{% include 'snippets/authors.html' with book=book limit=3 %}
{% else %} {% else %}
<a href="{{ book.local_path }}">{{ book|book_title }}</a> <a href="{{ book.local_path }}">{{ book|book_title }}</a>
{% endif %} {% endif %}
{% if book.series %}
({{book.series}}{%if book.series_number %}, #{{book.series_number}}{% endif %})
{% endif %}
{% endcache %} {% endcache %}
{% endspaceless %} {% 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> commented on <a href="{{ book_path }}">{{ book }}</a>
{% endblocktrans %} {% endblocktrans %}
{% if book.series %}
({{book.series}}{%if book.series_number %}, #{{book.series_number}}{% endif %})
{% endif %}
{% endif %} {% endif %}
{% endwith %} {% 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> quoted <a href="{{ book_path }}">{{ book }}</a>
{% endblocktrans %} {% endblocktrans %}
{% if book.series %}
({{book.series}}{%if book.series_number %}, #{{book.series_number}}{% endif %})
{% endif %}
{% endif %} {% endif %}
{% endwith %} {% 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> finished reading <a href="{{ book_path }}">{{ book }}</a>
{% endblocktrans %} {% endblocktrans %}
{% if book.series %}
({{book.series}}{%if book.series_number %}, #{{book.series_number}}{% endif %})
{% endif %}
{% endif %} {% endif %}
{% endspaceless %} {% endspaceless %}

View file

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

View file

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