Skip to content

Commit a17d1b7

Browse files
committed
Merge pull request #298 from jinsollee92/patch-1
Changed code for post_detail.html
2 parents 69bbd23 + 84551bc commit a17d1b7

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

en/extend_your_application/README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,15 @@ It will look like this:
116116
{% extends 'blog/base.html' %}
117117

118118
{% block content %}
119-
{% if post.published_date %}
120-
<div class="date">
121-
{{ post.published_date }}
122-
</div>
123-
{% endif %}
124-
<h1>{{ post.title }}</h1>
125-
<p>{{ post.text|linebreaks }}</p>
119+
<div class="post">
120+
{% if post.published_date %}
121+
<div class="date">
122+
{{ post.published_date }}
123+
</div>
124+
{% endif %}
125+
<h1>{{ post.title }}</h1>
126+
<p>{{ post.text|linebreaks }}</p>
127+
</div>
126128
{% endblock %}
127129

128130
Once again we are extending `base.html`. In the `content` block we want to display a post's published_date (if it exists), title and text. But we should discuss some important things, right?

0 commit comments

Comments
 (0)