{% extends 'web/base_modern.html' %} {% load static %} {% block title %}Блог - SmartSolTech{% endblock %} {% block content %}
📝 Блог

Наш блог

Статьи, советы и идеи от нашей команды

{% if posts %} {% for post in posts %}
{% if post.image %} {{ post.title }} {% else %}
{% endif %}
{{ post.published_date|date:"d.m.Y" }} {% if post.author %} {{ post.author.username }} {% endif %}
{{ post.title }}
{% if post.excerpt %}

{{ post.excerpt|truncatewords:20 }}

{% else %}

{{ post.content|truncatewords:20|striptags }}

{% endif %}
Читать далее {{ post.views }}
{% endfor %} {% else %}

Пока нет опубликованных постов

{% endif %}
{% endblock %}