{{ post.title }}
{% if post.abstract %}{{ post.abstract|truncatewords:25 }}
{% endif %} {% if post.tags.exists %} {% endif %}.. _custom_templates: ########################### How to create custom templates ########################### This guide shows how to create and customize templates for your stories, including complete template sets and plugin templates. Base Template Structure ======================= djangocms-stories uses a base template system for easy customization. All story templates extend a ``djangocms_stories/base.html`` template, which in turn extends your site's ``base.html`` template. **Template hierarchy:** :: your_site/base.html └── djangocms_stories/base.html ├── djangocms_stories/post_list.html ├── djangocms_stories/post_detail.html ├── djangocms_stories/category_list.html └── other story templates... Creating a Custom Base Template ================================ If your site's ``base.html`` doesn't have a ``content`` block, or you need different structure, create your own base template: **templates/djangocms_stories/base.html:** :: {% extends "base.html" %} {% load cms_tags %} {% block title %}{{ block.super }}{% endblock %} {% block content %}
{{ category.description }}
{% endif %}{{ post.abstract|truncatewords:25 }}
{% endif %} {% if post.tags.exists %} {% endif %}{{ post.abstract }}
{% endif %} {% if post.main_image %}