view themes/tuxlite_tbs/templates/article.html @ 46:ea8a767f5111

fiddle with L10N: generate the proper <html lang=""> element into the article page, depending on a page's defined locale with fallback to the default locale
author Dirk Olmes <dirk@xanthippe.ping.de>
date Thu, 02 Oct 2014 04:19:34 +0200
parents 51d2ddc51e40
children c2b99e876559
line wrap: on
line source

{% extends "base.html" %}
{% block htmlspec %}
{% if article.metadata.lang %}
<html lang="{{ article.metadata.lang }}">
{% else %}
{{ super() }}
{% endif %}
{% endblock %}

{% block content %}
    <div class='article'>
        <div class="content-title">
            <h1>{{ article.title }}</h1>
            {% include "metadata.html" %}
        </div>

        <div>{{ article.content }}</div>

        <hr>

        <h2>Comments</h2>
    {% include "twitter.html" %}
    {% if DISQUS_SITENAME %}
		{% include "disqus.html" %}
	{% endif %}
    {% include "simple_comments.html" %}
    </div>
{% endblock %}