{% extends "layouts/base.html" %} {% block title %} {% t "store.blog.title" %} | {{ block.super }} {% endblock %} {% block breadcrumbs %} {% t "navigation.main.home" %} {% if category %} {% t "navigation.main.blog" %} {{ category.name }} {% else %} {% t "navigation.main.blog" %} {% endif %} {% endblock %} {% block content %} {% if categories %} Category filter All Categories {% for category in categories %} {{ category.name }} {% endfor %} {% endif %} {% block search_posts %} {% include 'partials/form_field.html' with field=form.name nolabel=True inputGroup=True %} {% endblock search_posts %} {% if posts %} {% for post in posts %} {% with image=post.featured_image %} {% if image %} {% image_thumbnail image "x600" upscale=False as thumb %} {% endif %} {% endwith %} {% for category in post.categories.all %}{{ category.name }}{% if not forloop.last %},{% endif %}{% endfor %} {{ post.title }} {{ post.content|safe|truncatewords_html:25 }} By {{ post.author.first_name}} {{post.author.last_name }} {{ post.created_at }} {% t "global.button.more" %} {% endfor %} {% include "partials/pagination.html" %} {% else %} {% if search_not_found %} {% t "store.blog.search_not_found" %} {% else %} {% t "store.blog.no_posts" %} {% endif %} {% endif %} {% endblock %}
{{ post.content|safe|truncatewords_html:25 }}
{% t "store.blog.no_posts" %}