8000 List of posts done. · moktadirul-raju/DjangoBlog@40f1129 · GitHub
[go: up one dir, main page]

Skip to content

Commit 40f1129

Browse files
committed
List of posts done.
1 parent 2d89ba7 commit 40f1129

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/backend/posts.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
{% if posts %}
2727
{% for post in posts %}
2828
<tr>
29-
<th scope="row">1</th>
29+
<th scope="row">{{ forloop.counter }}</th>
3030
<td> <a href="/blog/posts/{{post.id}}"> {{ post.title}} </a></td>
3131
<td><a href="/blog/author/{{post.author}}">{{ post.author}}</a></td>
3232
<td>{{post.updated_date.year}}/{{post.updated_date.month}}/{{post.updated_date.day}}</td>

0 commit comments

Comments
 (0)
0