{% extends '_base.html' %} {% load static %} {% block PAGE_TITLE %}{{ post.s_title|striptags }} | Hypno Chronicles | HypnoSVG{% endblock %} {% block META_TITLE %}{{ post.s_title|striptags }} — HypnoSVG{% endblock %} {% block META_DESCRIPTION %}{% if post.s_teaser %}{{ post.s_teaser|striptags|truncatechars:"160" }}{% else %}Dispatch from the Hypno Chronicles of HypnoSVG: {{ post.s_title|striptags }}{% endif %}{% endblock %} {% block OG_TITLE %}{{ post.s_title|striptags }} | HypnoSVG{% endblock %} {% block OG_DESCRIPTION %}{% if post.s_teaser %}{{ post.s_teaser|striptags|truncatechars:"200" }}{% else %}Dispatch from the Hypno Chronicles of HypnoSVG: {{ post.s_title|striptags }}{% endif %}{% endblock %} {% block OG_IMAGE %}{% if post.f_cover_img %}{{ request.scheme }}://{{ request.get_host }}{{ post.f_cover_img.url }}{% elif post.k_item and post.k_item.file_svg %}{{ request.scheme }}://{{ request.get_host }}{{ post.k_item.file_svg.url }}{% else %}{% static 'img/og-hypn0-default.png' %}{% endif %}{% endblock %} {% block CANONICAL %}{{ request.scheme }}://{{ request.get_host }}{{ post.get_absolute_url }}{% endblock %} {% block EXTRA_LD_JSON %}, { "@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [ { "@type": "ListItem", "position": 1, "name": "Home", "item": "{{ request.scheme }}://{{ request.get_host }}{% url 'hypn0_site:index' %}" }, { "@type": "ListItem", "position": 2, "name": "Hypno Chronicles", "item": "{{ request.scheme }}://{{ request.get_host }}{% url 'hypn0_site:blog_feed' %}" }{% if series_parent %}, { "@type": "ListItem", "position": 3, "name": "{{ series_parent.s_title|striptags|escapejs }}", "item": "{{ request.scheme }}://{{ request.get_host }}{{ series_parent.get_absolute_url }}" }, { "@type": "ListItem", "position": 4, "name": "{{ post.s_title|striptags|escapejs }}", "item": "{{ request.scheme }}://{{ request.get_host }}{{ post.get_absolute_url }}" }{% else %}, { "@type": "ListItem", "position": 3, "name": "{{ post.s_title|striptags|escapejs }}", "item": "{{ request.scheme }}://{{ request.get_host }}{{ post.get_absolute_url }}" }{% endif %} ] }, { "@context": "https://schema.org", "@type": "Article", "headline": "{{ post.s_title|striptags|escapejs }}", "description": "{{ post.s_teaser|striptags|escapejs }}", "datePublished": "{{ post.d_published_at|date:"r" }}", "dateModified": "{{ post.d_updated_at|date:"r" }}", "mainEntityOfPage": { "@type": "WebPage", "@id": "{{ request.scheme }}://{{ request.get_host }}{{ post.get_absolute_url }}" } } {% endblock EXTRA_LD_JSON %} {% block CONTENT %}
{% if series_parent %}
Chapter {{ post.i_order }}
{% endif %} {% if post.f_cover_img and post.k_item %}
{{ post.s_title|striptags }}

{{ post.s_title|safe }}

{% if post.s_teaser %}
{{ post.s_teaser|safe }}
{% endif %}
{{ post.s_content|safe }}
{% else %}
{% if post.k_item %}{# 1. ЕСТЬ SVG (И НЕТ ОБЛОЖКИ) — ПОКАЗЫВАЕМ SVG И ПОД НИМ ЭКСПЛИКАЦИЮ #} {% elif post.f_cover_img %}{# 2. ЕСТЬ ТОЛЬКО ОБЛОЖКА #}
{{ post.s_title|striptags }}
{% else %}{# 3. НЕТ НИ SVG, НИ ОБЛОЖКИ — ДЕФОЛТНАЯ ЗАГЛУШКА #}
Brain Slug No visual transmitted
{% endif %}

{{ post.s_title|safe }}

{% if post.s_teaser %}
{{ post.s_teaser|safe }}
{% endif %}
{{ post.s_content|safe }}
{% endif %} {% if series_posts and not series_parent %}

Chapters in This Series

{% for child in series_posts %}
Chapter {{ child.i_order }}

{{ child.s_title|safe }}

{% if child.s_teaser %}

{{ child.s_teaser|striptags }}

{% endif %}
{% endfor %}
{% endif %}
{% endblock CONTENT %}