Skip to content

Commit

Permalink
Merge pull request #298 from jinsollee92/patch-1
Browse files Browse the repository at this point in the history
Changed code for post_detail.html
  • Loading branch information
olasitarska committed Mar 28, 2015
2 parents 69bbd23 + 84551bc commit a17d1b7
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions en/extend_your_application/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,15 @@ It will look like this:
{% extends 'blog/base.html' %}

{% block content %}
{% if post.published_date %}
<div class="date">
{{ post.published_date }}
</div>
{% endif %}
<h1>{{ post.title }}</h1>
<p>{{ post.text|linebreaks }}</p>
<div class="post">
{% if post.published_date %}
<div class="date">
{{ post.published_date }}
</div>
{% endif %}
<h1>{{ post.title }}</h1>
<p>{{ post.text|linebreaks }}</p>
</div>
{% endblock %}

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?
Expand Down

0 comments on commit a17d1b7

Please sign in to comment.