File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -265,14 +265,16 @@ so that the template will look like:
265265{% extends 'blog/base.html' %}
266266
267267{% block content %}
268- <div class =" date" >
269- {% if post.published_date %}
270- {{ post.published_date }}
271- {% endif %}
272- <a class =" btn btn-default" href =" {% url 'post_edit' pk=post.pk %}" ><span class =" glyphicon glyphicon-pencil" ></span ></a >
268+ <div class =" post" >
269+ {% if post.published_date %}
270+ <div class =" date" >
271+ {{ post.published_date }}
272+ </div >
273+ {% endif %}
274+ <a class =" btn btn-default" href =" {% url 'post_edit' pk=post.pk %}" ><span class =" glyphicon glyphicon-pencil" ></span ></a >
275+ <h1 >{{ post.title }}</h1 >
276+ <p >{{ post.text|linebreaks }}</p >
273277 </div >
274- <h1 >{{ post.title }}</h1 >
275- <p >{{ post.text|linebreaks }}</p >
276278{% endblock %}
277279```
278280
You can’t perform that action at this time.
0 commit comments