Initial commit
This commit is contained in:
11
blog/templates/blog/listing.html
Normal file
11
blog/templates/blog/listing.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{% extends "front_base.html" %}
|
||||
|
||||
{% block content %}
|
||||
{% if posts %}
|
||||
{% for post in posts %}
|
||||
{{ post.title }}
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<p>No posts are returned for your query.</p>
|
||||
{% endif %}
|
||||
{% endblock %}
|
5
blog/templates/blog/view.html
Normal file
5
blog/templates/blog/view.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{% extends "front_base.html" %}
|
||||
|
||||
<div class="post">
|
||||
<h3><a href="{% url 'read' post.created_at.year post.created_at.month post.created_at.day post.slug %}">{{ post.title }}</a></h3>
|
||||
</div>
|
Reference in New Issue
Block a user