1
0
Fork 0
forked from github/pelican

Support translation of lang attribute in default themes

This commit is contained in:
Jorge Maldonado Ventura 2018-07-01 20:32:08 +02:00
commit 71af410285
11 changed files with 12 additions and 8 deletions

View file

@ -1,4 +1,5 @@
{% extends "base.html" %}
{% block html_lang %}{{ article.lang }}{% endblock %}
{% block title %}{{ SITENAME }} - {{ article.title }}{% endblock %}

View file

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="{{ DEFAULT_LANG }}">
<html lang="{% block html_lang %}{{ DEFAULT_LANG }}{% endblock html_lang %}">
<head>
{% block head %}
<title>{% block title %}{{ SITENAME }}{% endblock title %}</title>

View file

@ -1,4 +1,5 @@
{% extends "base.html" %}
{% block html_lang %}{{ page.lang }}{% endblock %}
{% block title %}{{ SITENAME }} - {{ page.title }}{%endblock%}