{% extends "layouts/base.html" %} {% block page_title %}{{ seo.page_title|default:seo.title|default:post.Title }}{% endblock %} {% block title %}{% if seo.title %}{{ seo.title }}{% else %}{{ post.Title }}{% endif %}{% endblock %} {% block head_meta %} {% for tr in get_translations(post.TranslationGroupID) %} {% endfor %} {% endblock %} {% block content %}
{% set translations = get_translations(post.TranslationGroupID) %} {% if translations and translations|length > 0 %}
{{ t(current_lang, "translations") }}: {% for tr in translations %} [{{ tr.Lang }}] {{ tr.Title }} {% endfor %}
{% endif %}

{{ post.Title }}

{{ t(current_lang, "published_on") }} {{ post.CreatedAt|date:"2006-01-02 15:04" }} · {{ post.ContentHTML|word_count }} {{ t(current_lang, "word_count_unit") }} · {{ post.ContentHTML|reading_time }} {{ t(current_lang, "reading_time_unit") }} {% if post.Terms and post.Terms|length > 0 %} · {% for term in post.Terms %} #{{ term.Name }} {% endfor %} {% endif %}
{% if toc and toc|length > 0 %}

{{ t(current_lang, "toc_title") }}

{% endif %}
{{ post.ContentHTML|safe }}
{% set prevPost = get_prev_post(post) %} {% set nextPost = get_next_post(post) %} {% if prevPost or nextPost %} {% endif %}
{% set relatedPosts = get_related_posts(post, 3) %} {% if relatedPosts and relatedPosts|length > 0 %} {% endif %} {% endblock %}