{% extends "blogorama/base.html" %} {% load static %} {% load i18n %} {% load markdownify %} {% block title %} - Blog Posts {% endblock title %} {% block content %} Blogorama Blog Posts. {% for object in object_list %} {{ object.title }} {{ object.content|markdownify|truncatechars_html:200 }} Continue Reading {% empty %} No Posts yet. {% endfor %} {% comment %} {% endcomment %} {% if toc %}Table of Contents{% endif %} {% for year, y_value in toc.items %} {{ year }} {% for month, m_value in y_value.months.items %} {{ month }} {% for post in m_value.posts %} {{ post.title }} by {{ post.author }} {% endfor %} {% endfor %} {% endfor %} {% comment %} {% endcomment %} {% if perms.blogorama.update_post %} My Drafts {% for object in drafts %} {{ object.title }} {% empty %} No Posts yet. {% endfor %} {% endif %} {% comment %} {% if page_obj.has_previous %} « first previous {% endif %} Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }}. {% if page_obj.has_next %} next last » {% endif %} {% endcomment %} {% if is_paginated %} Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }}. {% if page_obj.has_previous %} Previous {% else %} Previous {% endif %} {% for num in page_obj.page_range %} {% if num == page_obj.number %} 1 {% else %} 1 {% endif %} {% endfor %} {% if page_obj.has_next %} Next {% else %} Next {% endif %} {% endif %} {% endblock content %}
{{ object.content|markdownify|truncatechars_html:200 }}