fix section card image subject location

This commit is contained in:
krmax44 2022-03-15 14:32:03 +01:00
parent 39f03ee750
commit 5e908d7efb
No known key found for this signature in database
GPG key ID: 5C499A4F4EC4EE03

View file

@ -5,7 +5,7 @@
{% for section in sections %} {% for section in sections %}
{% if section.image %} {% if section.image %}
#govsection-{{ section.pk }}::after { #govsection-{{ section.pk }}::after {
background-image: url('{% thumbnail section.image 350x150 crop subject_location=instance.picture.subject_location %}'); background-image: url('{% thumbnail section.image 350x150 crop subject_location=section.image.subject_location %}');
} }
{% endif %} {% endif %}
{% endfor %} {% endfor %}