Merge pull request #88 from jedie/spaceless

Fix #87 
exclude content from {% spaceless %}
This commit is contained in:
Iacopo Spalletti 2015-02-20 21:36:15 +01:00
commit f7e5f7673f

View file

@ -42,10 +42,11 @@
<img src="{{ thumb.url }}" alt="{{ post.main_image.default_alt_text }}" width="{{ thumb.width }}" height="{{ thumb.height }}" />
</div>
{% endif %}
{% endspaceless %}
{% if use_placeholder %}
<div class="blog-content">{% render_placeholder post.content %}</div>
{% else %}
<div class="blog-content">{% render_model post "post_text" "post_text" %}</div>
{% endif %}
</article>
{% endspaceless %}{% endblock content_blog %}
{% endblock content_blog %}