{% extends "base.html" %} {% load i18n mezzanine_tags blog_tags %} {% block meta_title %} {% load_settings BLOG_TITLE %}{{ BLOG_TITLE }} {% endblock %} {% block meta_description %} {% load_settings BLOG_DESCRIPTION %}{{ BLOG_DESCRIPTION }} {% endblock %} {% block title %} {% load_settings BLOG_TITLE %}{{ BLOG_TITLE }} {% endblock %} {% block main %} {% load_settings BLOG_DESCRIPTION %}

{% if tag %} {% trans "Viewing posts tagged" %} {{ tag }} {% else %}{% if year or month %} {% trans "Viewing posts from" %} {% if month %}{{ month }}, {% endif %} {{ year }} {% else %}{% if user %} {% trans "Viewing posts by" %} {{ user.get_full_name|default:user.username }} {% else %} {{ BLOG_DESCRIPTION }} {% endif %}{% endif %}{% endif %}

{% for blog_post in blog_posts.object_list %}

{% editable blog_post.title %} {{ blog_post.title }} {% endeditable %}

{% with blog_post.user as author %} {{ author.first_name }} {{ author.last_name }} {% endwith %} {% editable blog_post.publish_date %} {{ blog_post.publish_date|timesince }} {% trans "ago" %} {% endeditable %} {% editable blog_post.description %} {{ blog_post.description|safe }} {% endeditable %}

{% trans "read more" %} / {% if use_disqus %} {% trans "Comments" %} {% else %} {% blocktrans count blog_post.num_comments as num_comments %} 1 comment {% plural %} {{ num_comments }} comments {% endblocktrans %} {% endif %}

{% endfor %} {% pagination_for blog_posts %} {% if use_disqus %} {% include "blog/includes/disqus_counts.html" %} {% endif %} {% endblock %} {% block right_panel %} {% include "blog/includes/filter_panel.html" %} {% endblock %}