Source

simple template / templates / blog / blog_post_list.html

Full commit
{% extends "base.html" %}
{% load i18n mezzanine_tags blog_tags keyword_tags disqus_tags custom_tags %}

{% block meta_title %}{% if page %}{{ page.richtextpage.meta_title }}{% else %}{% trans "Blog" %}{% endif %}{% endblock %}

{% block meta_keywords %}{% metablock %}
{% keywords_for page as keywords %}
{% for keyword in keywords %}
    {% if not forloop.first %}, {% endif %}
    {{ keyword }}
{% endfor %}
{% endmetablock %}{% endblock %}

{% block meta_description %}{% metablock %}
{{ page.description }}
{% endmetablock %}{% endblock %}

{% block title %}
{% if page %}
{% editable page.title %}{{ page.title }}{% endeditable %}
{% else %}

{% endif %}
{% endblock %}

{% block breadcrumb_menu %}
{{ block.super }}
{% if tag or category or year or month or author %}
<li>{% spaceless %}
{% if tag %}
    {% trans "Tag:" %} {{ tag }}
{% else %}{% if category %}
    {% trans "Category:" %} {{ category }}
{% else %}{% if year or month %}
    {% if month %}{{ month }}, {% endif %}{{ year }}
{% else %}{% if author %}
    {% trans "Author:" %} {{ author.get_full_name|default:author.username }}
{% endif %}{% endif %}{% endif %}{% endif %}
{% endspaceless %}
</li>
{% endif %}
{% endblock %}

{% block main %}

{% if tag or category or year or month or author %}
    <p>
    {% if tag %}
        {% trans "Viewing posts tagged" %} {{ tag }}
    {% else %}{% if category %}
        {% trans "Viewing posts for the category" %} {{ category }}
    {% else %}{% if year or month %}
        {% trans "Viewing posts from" %} {% if month %}{{ month }}, {% endif %}
        {{ year }}
    {% else %}{% if author %}
        {% trans "Viewing posts by" %}
        {{ author.get_full_name|default:author.username }}
    {% endif %}{% endif %}{% endif %}{% endif %}
    </p>
{% else %}
    {% if page %}
    {% editable page.richtextpage.content %}
    {{ page.richtextpage.content|safe }}
    {% endeditable %}
    {% endif %}
{% endif %}
<div class="row row_image">
{% for blog_post in blog_posts.object_list %}
<div class="span3 featured">
{% if blog_post.featured_image %}
      <a href="{{ blog_post.get_absolute_url }}">
<img
   class="featured-thumb"
   src="{{ MEDIA_URL }}{% bwthumbnail blog_post.featured_image 300 300%}"
   onmouseover="this.src='{{ MEDIA_URL }}{% thumbnail blog_post.featured_image 300 300%}'"
   onmouseout="this.src='{{ MEDIA_URL }}{% bwthumbnail blog_post.featured_image 300 300%}'"> 

</a>
{% endif %}
<div class="blog_title">
  <span class="title">

      <a href="{{ blog_post.get_absolute_url }}">{{ blog_post.title }}</a>

  </span>
  <span class="date">
    {{blog_post.publish_date|date:"t/n/y" }}
  </span>

</div> 
</div> <!-- span4 -->
{% endfor %}
</div> <!--row-->
{% pagination_for blog_posts %}

{% if settings.COMMENTS_DISQUS_SHORTNAME %}
{% include "generic/includes/disqus_counts.html" %}
{% endif %}

{% endblock %}

{% block right_panel %}
{% include "blog/includes/filter_panel.html" %}
{% endblock %}