Skip to content

Commit

Permalink
Update reference blog_item.html
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Oct 6, 2023
1 parent 4e92732 commit 5efa948
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ <h4>{{ postcontent.subtitle }}</h4>
{% include "djangocms_blog/includes/blog_meta.html" %}
{% endblock %}
</header>
{% if image and postcontent.main_image %}
{% if image and postcontent.post.main_image %}
<div class="blog-visual">
{% thumbnail postcontent.main_image postcontent.thumbnail_options.size crop=postcontent.thumbnail_options.crop upscale=postcontent.thumbnail_options.upscale subject_location=postcontent.main_image.subject_location as thumb %}
{% thumbnail postcontent.post.main_image postcontent.post.thumbnail_options.size crop=postcontent.post.thumbnail_options.crop upscale=postcontent.post.thumbnail_options.upscale subject_location=postcontent.post.main_image.subject_location as thumb %}
<img src="{{ thumb.url }}" alt="{{ postcontent.main_image.default_alt_text }}" width="{{ thumb.width }}" height="{{ thumb.height }}" />
</div>
{% else %}
Expand Down

0 comments on commit 5efa948

Please sign in to comment.