{% extends "public/base.html" %} {% load blocks faq media %} {% load i18n %} {% comment %}Opis, adres kanoniczny, Open Graph i dane strukturalne sklada szkielet dokumentu z obiektu `seo` podanego przez widok (core/seo.py). Tutaj zostaje sam kanal wpisow - nalezy do bloga, nie do znacznikow strony.{% endcomment %} {% block meta %} {% if blog.rss_enabled %}{% endif %} {% endblock %} {% comment %}Wpis czyta sie jak zwykly artykul: kategoria, tytul, wiersz z data i autorem, zdjecie i tresc - wszystko w jednej kolumnie. Nie ma kolorowej szyny przyklejonej do lewej krawedzi ani spisu tresci obok, bo wpis jest zwykle krotszy od podstrony i nie ma po czym skakac.{% endcomment %} {% block content %} {% include 'public/partials/preview_bar.html' %}

{% if post.category %} {{ post.category.name }} {% else %} {{ blog.title }} {% endif %}

{{ post.title }}

{% if post.excerpt %}

{{ post.excerpt }}

{% endif %} {% comment %}Jeden wiersz z tym, co czytelnik chce wiedziec przed lektura. Kazda z trzech pozycji ma wlasny wylacznik w panelu (Blog > Ustawienia), wiec wiersz moze zniknac w calosci.{% endcomment %}

{% if blog.show_date and post.published_at %}{{ post.published_at|date:site_settings.date_format|default:post.published_at }}{% endif %} {% if blog.show_author and post.author %}{{ post.author.get_full_name|default:post.author.username }}{% endif %} {% if blog.show_reading_time %}{{ post.reading_time }} min czytania{% endif %}

{% if post.cover %}
{% picture post.cover alt=post.title css="h-[15rem] w-full object-cover sm:h-[24rem]" sizes="(min-width: 1024px) 60vw, 100vw" loading="eager" fetchpriority="high" %}
{% endif %} {% comment %}Bloki tresci doczepione do tego wpisu w panelu (modul `blocks`).{% endcomment %} {% content_blocks post 'before' %} {% comment %}Szerokość kolumny ustawia sam wpis (Treść > Szerokość treści).{% endcomment %}
{{ post.body_html }}
{% content_blocks post 'after' %}
{% comment %}Pytania i odpowiedzi doczepione do tego wpisu (modul `faq`).{% endcomment %} {% faq_sections post %} {% if related %}

{% trans "Zobacz także" %}

{% endif %} {% if comments.visible %}

Komentarze{% if comment_list %} ({{ comment_list|length }}){% endif %}

{% for comment in comment_list %}

{{ comment.display_name }} {{ comment.created_at|date:site_settings.date_format|default:comment.created_at }}

{{ comment.body_html }}
{% empty %}

{% trans "Nie ma jeszcze komentarzy - napisz pierwszy." %}

{% endfor %}
{% if comment_form %}
{% csrf_token %}

{% trans "Dodaj komentarz" %}

{% if comment_form.non_field_errors %}
{% for error in comment_form.non_field_errors %}

{{ error }}

{% endfor %}
{% endif %} {% for field in comment_form %} {% if field.is_hidden %} {{ field }} {% else %}
{{ field }}
{% if field.help_text %}

{{ field.help_text }}

{% endif %} {% for error in field.errors %}

{{ error }}

{% endfor %}
{% endif %} {% endfor %}
{% elif comments_login_required %}

{% url 'panel:login' as adres_logowania %} {% blocktrans with adres=adres_logowania powrot=request.path|urlencode %}Komentowac moga tylko osoby zalogowane - zaloguj się.{% endblocktrans %}

{% elif comments.closed_reason %}

{{ comments.closed_reason }}

{% endif %}
{% endif %} {% endblock %}