Skip to content

Commit

Permalink
fix: Pass the correct variable name to the included template
Browse files Browse the repository at this point in the history
`djangocms_blog/includes/blog_item.html` expects a `postcontent`
variable instead of `post_content`.
  • Loading branch information
GaretJax committed Aug 16, 2024
1 parent 5956498 commit 0a9f604
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{% load i18n %}{% spaceless %}
<div class="plugin plugin-blog">
<div class="blog-latest-entries">
{% for post_content in postcontent_list %}
{% include "djangocms_blog/includes/blog_item.html" with post_content=post_content image="true" TRUNCWORDS_COUNT=TRUNCWORDS_COUNT %}
{% for postcontent in postcontent_list %}
{% include "djangocms_blog/includes/blog_item.html" with postcontent=postcontent image="true" TRUNCWORDS_COUNT=TRUNCWORDS_COUNT %}
{% empty %}
<p class="blog-empty">{% trans "No article found." %}</p>
{% endfor %}
Expand Down

0 comments on commit 0a9f604

Please sign in to comment.