You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: en/extend_your_application/README.md
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -116,13 +116,15 @@ It will look like this:
116
116
{% extends 'blog/base.html' %}
117
117
118
118
{% 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>
126
128
{% endblock %}
127
129
128
130
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