Done blog post detail
[django-girls.git] / blog / templates / blog / post_list.html
index b5f399523a213d495fe6fb4e0bc712c565dbe575..eb1647a5e1e304356185d1d82854b53e2d9bce29 100644 (file)
@@ -1,21 +1,13 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <title>Neil's blog</title>
-</head>
-<body>
-
-<div>
-       <h1><a  href="">Django  Girls   Blog</a></h1>
-</div>
+{% extends 'blog/base.html' %}
 
+{% block content %}
 {% for post in posts %}
-       <div>
-       <p>Published: {{ post.published_date }}</p>
-       <h1><a href="">{{ post.title }}</a></h1>
-       <p>{{ post.text | linebreaksbr }}</p>
+<div class="post">
+       <div class="date">
+               <p>published: {{ post.published_date }}</p>
        </div>
+       <h1><a href="{% url 'post_detail' pk=post.pk %}">{{ post.title }}</a></h1>
+       <p>{{ post.text|linebreaksbr }}</p>
+</div>
 {% endfor %}
-
-</body>
-</html>
\ No newline at end of file
+{% endblock %}
\ No newline at end of file