Skip to content

Commit

Permalink
Fix preview image of datashow template
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanw committed Feb 27, 2025
1 parent 767e835 commit 73cfbd1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fragdenstaat_de/templates/datashow/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
{% if table %}
{% with title=row_label|default:table.label description=row_description|default:table.description|striptags|truncatewords:40 %}
{% if dataset.theme.image %}
{% thumbnail dataset.theme.image 1120x600 crop subject_location=dataset.theme.image.subject_location as image_url %}
{% thumbnail dataset.theme.image 1120x600 crop subject_location=dataset.theme.image.subject_location as image %}
{% endif %}
{% include "fds_cms/social_meta.html" with title=title description=description image_url=image_url %}
{% include "fds_cms/social_meta.html" with title=title description=description image_url=image.url %}
{% endwith %}
{% else %}
{% with title=dataset.name description=dataset.description|striptags|truncatewords:40 %}
{% if dataset.theme.image %}
{% thumbnail dataset.theme.image 1120x600 crop subject_location=dataset.theme.image.subject_location as image_url %}
{% thumbnail dataset.theme.image 1120x600 crop subject_location=dataset.theme.image.subject_location as image %}
{% endif %}
{% include "fds_cms/social_meta.html" with title=title description=description image_url=image_url %}
{% include "fds_cms/social_meta.html" with title=title description=description image_url=image.url %}
{% endwith %}
{% endif %}
{% endblock meta %}
Expand Down

0 comments on commit 73cfbd1

Please sign in to comment.