{% extends "base.html" %} {% load i18n mezzanine_tags blog_tags keyword_tags disqus_tags %} {% block meta_title %}{% if page %}{{ page.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 %} {% trans "Blog" %} {% endif %} {% endblock %} {% block breadcrumb_menu %} {{ block.super }} {% 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 %} {% endblock %}
{% else %} {% if page %} {% block blog_post_list_pagecontent %} {% if page.get_content_model.content %} {% editable page.get_content_model.content %} {{ page.get_content_model.content|richtext_filters|safe }} {% endeditable %} {% endif %} {% endblock %} {% endif %} {% endif %} {% for blog_post in blog_posts.object_list %} {% block blog_post_list_post_title %} {% editable blog_post.title %}{% trans "read more" %} {% if blog_post.allow_comments %} / {% if settings.COMMENTS_DISQUS_SHORTNAME %} {% trans "Comments" %} {% else %} {% blocktrans count comments_count=blog_post.comments_count %}{{ comments_count }} comment{% plural %}{{ comments_count }} comments{% endblocktrans %} {% endif %} {% endif %}