Source

loutontheweb.co.cc / mcblog / templates / mcblog / entry_list.html

Full commit
{% extends 'mcblog/base.html' %}

{% block extrahead %}
<link href="http://feeds.feedburner.com/loutontheweb/" rel="alternate" type="application/rss+xml" title="Latest blog entries" />
{% endblock extrahead %}

{% block title %}loutontheweb{% endblock %}

{% block content %}
{% for entry in object_list %}
  <h2>
    <a href="{{ entry.category.get_absolute_url }}">{{ entry.category }}</a> &rarr;
    <a href="{{ entry.get_absolute_url }}">{{ entry.title }}</a>
  </h2>
  {% if entry.excerpt_html %}
    {{ entry.excerpt_html|safe }}
  {% else %}
    {{ entry.body_html|truncatewords_html:50|safe }}
  {% endif %}
  <p><a href="{{ entry.get_absolute_url }}">Read full entry</a></p>
  <p class="extra">
    {% for tag in entry.tags.list %}
      <a href="{% url mcblog-tagged-entry-list tag|slugify %}">{{ tag }}</a>
    {% endfor %}
    | {{ entry.pub_date }}
  </p>
{% empty %}
  <p>There is no entries currently.</p>
{% endfor %}

{% include 'mcblog/_pagination.html' %}
{% endblock content %}

{% block menu %}
{% include 'taggit/_entry_tag_cloud.html' %}
{% endblock menu %}