Mercurial > hg > Blog
comparison 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 |
comparison
equal
deleted
inserted
replaced
45:84aa3a9a4001 | 46:ea8a767f5111 |
---|---|
1 {% extends "base.html" %} | 1 {% extends "base.html" %} |
2 {% block htmlspec %} | |
3 {% if article.metadata.lang %} | |
4 <html lang="{{ article.metadata.lang }}"> | |
5 {% else %} | |
6 {{ super() }} | |
7 {% endif %} | |
8 {% endblock %} | |
9 | |
2 {% block content %} | 10 {% block content %} |
3 <div class='article'> | 11 <div class='article'> |
4 <div class="content-title"> | 12 <div class="content-title"> |
5 <h1>{{ article.title }}</h1> | 13 <h1>{{ article.title }}</h1> |
6 {% include "metadata.html" %} | 14 {% include "metadata.html" %} |