{# -*- coding: utf-8 -*- #} {% import 'post_helper.tmpl' as helper with context %} {% import 'comments_helper.tmpl' as comments with context %} {% macro html_title() %} {% if title and not post.meta('hidetitle') %}

{{ post.title()|e }}

{% endif %} {% endmacro %} {% macro html_translations(post) %} {% if post.translated_to|length > 1 %}

{{ messages("Also available in:") }}

{% for langname in translations|sort %} {% if langname != lang and post.is_translation_available(langname) %}

{{ messages("LANGUAGE", langname) }}

{% endif %} {% endfor %}
{% endif %} {% endmacro %} {% macro html_sourcelink() %} {% if show_sourcelink %}

{{ messages("Source") }}

{% endif %} {% endmacro %} {% macro html_post_header() %}
{{ html_title() }}
{% if not post.meta('nocomments') and site_has_comments %}

{{ comments.comment_link(post.permalink(), post._base_path) }} {% endif %} {{ html_sourcelink() }} {% if post.meta('link') %}

{{ messages("Original site") }}

{% endif %}
{{ html_translations(post) }}
{% endmacro %}