Skip to content

Commit

Permalink
Update templates to use post_date
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartmaxwell committed May 16, 2024
1 parent 3b0fb75 commit f25d2b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/djpress/snippets/post_summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ <h2 class="card-title"><a href="{% url 'djpress:post_detail' post.permalink %}">
{% endif %}
</div>
<div class="card-footer text-muted">
<p>Posted on {{ post.date }} by {% post_author %}</p>
<p>Posted on {% post_date %} by {% post_author %}</p>
<p>
Categories:
{% for category in post.categories.all %}
Expand Down
2 changes: 1 addition & 1 deletion templates/djpress/snippets/post_title.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<h2 class="card-title"><a href="{% url 'djpress:post_detail' post.permalink %}">{{ post.title }}</a></h2>
</div>
<div class="card-footer text-muted">
<p>Posted on {{ post.date }} by {% post_author post.author %}</p>
<p>Posted on {{ post_date }} by {% post_author post.author %}</p>
<p>
Categories:
{% for category in post.categories.all %}
Expand Down

0 comments on commit f25d2b6

Please sign in to comment.