Mercurial > hg > Blog
view themes/tuxlite_tbs/templates/page.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 |
line wrap: on
line source
{% extends "base.html" %} {% block title %} {% endblock %} {% block content %} <section id="content" class="body"> <h2 class="content-title"> {{ page.title }} {% if page.translations %} <a href="{{ SITEURL }}/{{ page.url }}" class="btn btn-info xsmall">{{ page.lang or DEFAULT_LANG }}</a> {% for translation in page.translations %} <a href="{{ SITEURL }}/{{ translation.url }}" class="btn btn-info xsmall">{{ translation.lang }}</a> {% endfor %} {% endif %} </h2> {% if PDF_PROCESSOR %}<a href="{{ SITEURL }}/pdf/{{ page.slug }}.pdf">get the pdf</a>{% endif %} {{ page.content }} </section> {% endblock %}