{% extends "base.html" %} {% load i18n future 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 %} / {% 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 %} / {% endif %} {% endblock %} {% block sidebar %} {% endblock sidebar %} {% block main %} {% if tag or category or year or month or author %} {% block blog_post_list_filterinfo %}

{% 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 %}

{{ blog_post.title }}

{% endblock %} {% block blog_post_list_post_metainfo %}

{% blocktrans with sometime=blog_post.publish_date|timesince %}{{ sometime }} ago{% endblocktrans %} {% with blog_post.categories.all as categories %} {% if categories %} · {% for category in categories %} {{ category }}{% if not forloop.last %}, {% endif %} {% endfor %} {% endif %} {% endwith %} {% 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 %} {% if user.is_superuser %} {# =todo: remove hardcoded URL to admin #} · {% trans "Edit" %} {% endif %}

{% endblock %} {% if settings.BLOG_USE_FEATURED_IMAGE and blog_post.featured_image %} {% block blog_post_list_post_featured_image %} {% endblock %} {% endif %} {% block blog_post_list_post_content %} {{ blog_post.description_from_content|safe }}

{% trans "Read more…" %}

{% endblock %} {% block blog_post_list_post_links %}
{% keywords_for blog_post as tags %} {% if tags %} {% endif %}
{% endblock %} {% endfor %} {% 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 %}