Skip to content

Commit

Permalink
Empy bullet for article sans publish date (nephila#604)
Browse files Browse the repository at this point in the history
* 603: Avoid empty <li> (article sans publish date)
  • Loading branch information
wesleyboar authored Jun 24, 2020
1 parent 540d875 commit 23c4101
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions changes/603.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add missing condition for (date_published) <li> on blog_meta template
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
{% trans "by" %} <a href="{% url 'djangocms_blog:posts-author' post.author.get_username %}">{% if post.author.get_full_name %}{{ post.author.get_full_name }}{% else %}{{ post.author }}{% endif %}</a>
</li>
{% endif %}
{% if post.date_published %}
<li>
{{ post.date_published|date:"DATE_FORMAT" }}
</li>
{% endif %}
{% if post.date_featured %}
<li>
{{ post.date_featured|date:"DATE_FORMAT" }}
Expand Down

0 comments on commit 23c4101

Please sign in to comment.