Skip to content

Commit

Permalink
added django-markup integration
Browse files Browse the repository at this point in the history
  • Loading branch information
montylounge committed Aug 24, 2009
1 parent d16455b commit d18ee24
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 15 deletions.
3 changes: 1 addition & 2 deletions basic/blog/templates/blog/category_detail.html
Expand Up @@ -12,13 +12,12 @@ <h2>Posts for {{ category.title }}</h2>


{% block content %}
{% load markup %}
<div class="post_list">
{% for post in object_list %}
<div>
<h3 class="title"><a href="{{ post.get_absolute_url }}">{{ post.title }}</a></h3>
<p class="date">{{ post.publish|date:"Y F d" }}</p>
<p class="tease">{{ post.tease }}</p>
<p class="tease">{{ post.tease_markup }}</p>
</div>
{% endfor %}
</div>
Expand Down
1 change: 0 additions & 1 deletion basic/blog/templates/blog/category_list.html
Expand Up @@ -11,7 +11,6 @@ <h2>Post categories</h2>


{% block content %}
{% load markup %}
<ul class="link_list">
{% for category in object_list %}
<li><a href="{{ category.get_absolute_url }}">{{ category }}</a></li>
Expand Down
2 changes: 1 addition & 1 deletion basic/blog/templates/blog/post_archive_day.html
Expand Up @@ -16,7 +16,7 @@ <h2>Post archive for {{ day|date:"d F Y" }}</h2>
<div>
<h3 class="title"><a href="{{ post.get_absolute_url }}">{{ post.title }}</a></h3>
<p class="date">{{ post.publish|date:"Y F d" }}</p>
<p class="tease">{{ post.tease }}</p>
<p class="tease">{{ post.tease_markup }}</p>
</div>
{% endfor %}
</div>
Expand Down
2 changes: 1 addition & 1 deletion basic/blog/templates/blog/post_archive_month.html
Expand Up @@ -16,7 +16,7 @@ <h2>Post archive for {{ month|date:"F Y" }}</h2>
<div>
<h3 class="title"><a href="{{ post.get_absolute_url }}">{{ post.title }}</a></h3>
<p class="date">{{ post.publish|date:"Y F d" }}</p>
<p class="tease">{{ post.tease }}</p>
<p class="tease">{{ post.tease_markup }}</p>
</div>
{% endfor %}
</div>
Expand Down
4 changes: 1 addition & 3 deletions basic/blog/templates/blog/post_archive_year.html
Expand Up @@ -10,9 +10,7 @@ <h2>Post archive for {{ year }}</h2>
{% endblock %}


{% block content %}
{% load markup %}

{% block content %}
<ul class="link_list">
{% for month in date_list %}
<li><a href="{% url blog_index %}{{ year }}/{{ month|date:"b" }}/">{{ month|date:"F" }}</a></li>
Expand Down
4 changes: 2 additions & 2 deletions basic/blog/templates/blog/post_detail.html
Expand Up @@ -20,12 +20,12 @@ <h2>{{ object.title }}</h2>


{% block content %}
{% load blog markup comments tagging_tags inlines %}
{% load blog comments tagging_tags inlines %}

<p class="date">{{ object.publish|date:"j F Y" }}</p>

<div class="body">
{{ object.body|render_inlines|markdown:"safe" }}
{{ object.body_markup|render_inlines|safe }}
</div>

{% tags_for_object object as tag_list %}
Expand Down
2 changes: 1 addition & 1 deletion basic/blog/templates/blog/post_list.html
Expand Up @@ -16,7 +16,7 @@ <h2>Post archive</h2>
<div>
<h3 class="title"><a href="{{ post.get_absolute_url }}">{{ post.title }}</a></h3>
<p class="date">{{ post.publish|date:"Y F d" }}</p>
<p class="tease">{{ post.tease }}</p>
<p class="tease">{{ post.tease_markup }}</p>
</div>
{% endfor %}
</div>
Expand Down
2 changes: 1 addition & 1 deletion basic/blog/templates/blog/post_search.html
Expand Up @@ -28,7 +28,7 @@ <h2>Search</h2>
<div>
<h3 class="title"><a href="{{ post.get_absolute_url }}">{{ post.title }}</a></h3>
<p class="date">{{ post.publish|date:"Y F d" }}</p>
<p class="tease">{{ post.tease }}</p>
<p class="tease">{{ post.tease_markup }}</p>
<p class="comments">{% if comment_count %}{{ comment_count }} comment{{ comment_count|pluralize }}{% endif %}</p>
</div>
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion basic/blog/templates/blog/tag_detail.html
Expand Up @@ -17,7 +17,7 @@ <h2>Posts for {{ tag.name }}</h2>
<div>
<h3 class="title"><a href="{{ post.get_absolute_url }}">{{ post.title }}</a></h3>
<p class="date">{{ post.publish|date:"Y F d" }}</p>
<p class="tease">{{ post.tease }}</p>
<p class="tease">{{ post.tease_markup }}</p>
</div>
{% endfor %}
</div>
Expand Down
3 changes: 1 addition & 2 deletions basic/blog/templates/feeds/posts_description.html
@@ -1,2 +1 @@
{% load markup %}
{{ obj.body|markdown }}
{{ obj.body_markup }}

0 comments on commit d18ee24

Please sign in to comment.