{% extends "lotus/base.html" %} {% load i18n lotus django_blog_plus static %} {% block header-title %}{{ article_object.seo_title|default:article_object.title }} | {{ django_blog_plus_site_name|default:"Blog" }}{% endblock header-title %} {% block metas %} {% if article_object.cover %} {% endif %} {% for author in article_object.get_authors %} {% endfor %} {% endblock metas %} {% block lotus_content %} {# Track view count #} {% increment_article_view article_object.id %}
{# Breadcrumb #} {# Cover Image #} {% if article_object.cover %}
{{ article_object.cover_alt_text|default:article_object.title }}
{% endif %} {# Title #}

{{ article_object.title }}

{# Meta #}
{{ article_object.publish_datetime|date:"F d, Y" }} · {% reading_time article_object.content %} {% trans "min read" %} {% with article_authors=article_object.get_authors %} {% if article_authors %} · {% trans "By" %} {{ article_authors.0.get_full_name }} {% endif %} {% endwith %}
{# Introduction #} {% if article_object.introduction %}
{{ article_object.introduction|safe }}
{% endif %} {# Content #}
{{ article_object.content|demote_headings|safe }}
{# Featured Image (before CTA) #} {% if article_object.image %}
{{ article_object.image_alt_text|default:article_object.title }}
{% endif %} {# Call to Action #} {% get_article_cta article_object.id as cta %} {% if cta %}

{{ cta.title }}

{% if cta.image %} {{ cta.title }} {% endif %}
{{ cta.text|safe }}
{% if cta.button_text and cta.button_url %} {{ cta.button_text }} {% endif %}
{% endif %} {# Tags #} {% with article_tags=article_object.tags.all %} {% if article_tags %}
{% trans "Tags" %}: {% for tag in article_tags %} {{ tag.name }} {% endfor %}
{% endif %} {% endwith %} {# Author Box #} {% with article_authors=article_object.get_authors %} {% if article_authors %}
{% with author=article_authors.0 %} {% if author.userprofile.avatar %} {{ author.get_full_name }} {% endif %}

{{ author.get_full_name }}

{% if author.userprofile.author_description %}

{{ author.userprofile.author_description }}

{% endif %}
{% endwith %}
{% endif %} {% endwith %} {# Previous/Next Navigation #} {% get_adjacent_articles article_object as nav %} {% if nav.previous or nav.next %} {% endif %}
{% endblock lotus_content %}