{% extends "base.html" %} {% load i18n mezzanine_tags blog_tags disqus_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 %}
{% if blog_post.keyword_list %}
{% trans "Tags" %}:
{% for tag in blog_post.keyword_list %}
{{ tag }}
{% endfor %}
{% endif %}
{% trans "read more" %}
/
{% if settings.COMMENTS_DISQUS_SHORTNAME %}
{% trans "Comments" %}
{% else %}
{% blocktrans count blog_post.comments_count as comments_count %}
1 comment
{% plural %}
{{ comments_count }} comments
{% endblocktrans %}
{% endif %}