1. Gregory Petukhov
  2. django-article

Source

django-article / templates / _article_item.html

1
2
3
4
5
6
7
8
9
{% load thumbnail %}

<h2>{% if article.is_starred %}(*) {% endif %}{{ article }}</h2>
<div>
    {% thumbnail article.image "100x100" as thumb %}<img src="{{ thumb.url }}" alt="" />{% endthumbnail %}
    {{ article.teaser|safe }}
    <a href="{{ article.get_absolute_url }}">read more...</a>
</div>
<hr/>