{#  -*- coding: utf-8 -*- #}
{% import 'arusahni_helper.tmpl' as arusahni with context %}
{% import 'post_helper.tmpl' as helper with context %}
{% import 'comments_helper.tmpl' as comments with context %}
{% extends 'post.tmpl' %}

{% block extra_head %}
    {{ super() }}
    {% if post.meta('keywords') %}
        <meta name="keywords" content="{{ post.meta('keywords')|e }}">
    {% endif %}
    <meta name="author" content="{{ post.author() }}">
    {{ helper.open_graph_metadata(post) }}
    {{ helper.twitter_card_information(post) }}
    {{ helper.meta_translations(post) }}
    {% if post.description() %}
        <meta name="description" itemprop="description" content="{{ post.description() }}">
    {% endif %}
{% endblock %}

{% block content %}
<article class="storypage" itemscope="itemscope" itemtype="http://schema.org/Article">
    <header>
        {{ arusahni.html_title() }}
        {{ arusahni.html_translations(post) }}
    </header>
    <div itemprop="articleBody text">
    {{ post.text() }}
    </div>
    {% if site_has_comments and enable_comments and not post.meta('nocomments') %}
        <section class="comments">
        <h2>{{ messages("Comments") }}</h2>
        {{ comments.comment_form(post.permalink(absolute=True), post.title(), post.base_path) }}
        </section>
    {% endif %}
</article>
{% endblock %}
