{% extends "base.html" %} {% load i18n mezzanine_tags blog_tags %} {% block meta_title %}{{ blog_page.title }}{% endblock %} {% block meta_keywords %}{% metablock %} {% for keyword in blog_page.keywords.all %} {% if not forloop.first %}, {% endif %} {{ keyword }} {% endfor %} {% endmetablock %}{% endblock %} {% block meta_description %}{% metablock %} {{ blog_page.description }} {% endmetablock %}{% endblock %} {% block title %} {% editable blog_page.title %}{{ blog_page.title }}{% endeditable %} {% endblock %} {% block main %} {% if tag or category or year or month or author %}
{% 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 %}
{% else %} {% editable blog_page.content %} {{ blog_page.content|safe }} {% endeditable %} {% endif %} {% for blog_post in blog_posts.object_list %} {% editable blog_post.title blog_post.publish_date %}{% 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 %}