{% extends "base.html" %} {% load mezzanine_tags comment_tags keyword_tags rating_tags i18n disqus_tags %} {% block meta_title %}{{ blog_post.meta_title }}{% endblock %} {% block meta_keywords %}{% metablock %} {% keywords_for blog_post as tags %} {% for tag in tags %}{% if not forloop.first %}, {% endif %}{{ tag }}{% endfor %} {% endmetablock %}{% endblock %} {% block meta_description %}{% metablock %} {{ blog_post.description }} {% endmetablock %}{% endblock %} {% block main %} {% editable blog_post.title %} {{ blog_post.title }} {% endeditable %} {% blocktrans with sometime=blog_post.publish_date|timesince %}{{ sometime }} ago{% endblocktrans %} {% block blog_post_detail_sharebuttons %} {% endblock %} {% block blog_post_detail_featured_image %} {% if settings.BLOG_USE_FEATURED_IMAGE and blog_post.featured_image %} {% endif %} {% endblock %} {% block blog_post_detail_content %} {% editable blog_post.content %} {{ blog_post.content|richtext_filters|safe }} {% endeditable %} {% endblock %} {% block blog_post_detail_categories %} {% with blog_post.categories.all as categories %} {% if categories %} {% trans "Categories" %} {% for category in categories %} {{ category }}{% if not forloop.last %}, {% endif %} {% endfor %} {% endif %} {% endwith %} {% endblock %} {% block blog_post_detail_keywords %} {% keywords_for blog_post as tags %} {% if tags %} {% spaceless %} {% trans "Tags" %}: {% for tag in tags %} {{ tag }}{% if not forloop.last %}, {% endif %} {% endfor %} {% endspaceless %} {% endif %} {% endblock %} {% block blog_post_detail_previous_next %} {% with blog_post.get_previous_by_publish_date as previous %} {% if previous %} ← {{ previous }} {% endif %} {% endwith %} {% with blog_post.get_next_by_publish_date as next %} {% if next %} {{ next }} → {% endif %} {% endwith %} {% endblock %} {% block blog_post_detail_related_posts %} {% if related_posts %} {% trans 'Related posts' %} {% for post in related_posts %} {{ post.title }} {% endfor %} {% endif %} {% endblock %} {% block blog_post_detail_comments %} {% if blog_post.allow_comments %} {% comments_for blog_post %} {% endif %} {% endblock %} {% endblock %}
{% blocktrans with sometime=blog_post.publish_date|timesince %}{{ sometime }} ago{% endblocktrans %}