Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b04022d
commit 597bfb9
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{% for post in post_list %} | ||
<article> | ||
<header> | ||
<h2> | ||
<a href=""> | ||
{{ post.title|title }}</a> | ||
</h2> | ||
<p> | ||
Written on: | ||
<time datetime="{{ post.pub_date|date:"Y-m-d" }}"> | ||
{{ post.pub_date|date:"l, F j, Y" }} | ||
</time> | ||
</p> | ||
</header> | ||
<p>{{ post.text|truncatewords:20 }}</p> | ||
<p> | ||
<a href=""> | ||
Read more…</a> | ||
</p> | ||
</article> | ||
{% empty %} | ||
<p><em>No Blog Posts Available</em></p> | ||
{% endfor %} |