Add ``html_language`` setting in order to be used by html templates

This commit is contained in:
François D
2017-09-10 14:49:19 +02:00
parent aaf645fa9a
commit c00b4f40b4
5 changed files with 7 additions and 3 deletions

View File

@@ -47,6 +47,7 @@ _DEFAULT_CONFIG = {
'index_in_url': False,
'jpg_options': {'quality': 85, 'optimize': True, 'progressive': True},
'keep_orig': False,
'html_language': 'en',
'leaflet_provider': 'OpenStreetMap.Mapnik',
'links': '',
'locale': '',

View File

@@ -193,6 +193,9 @@ ignore_files = []
# Specify a different locale. If set to '', the default locale is used.
# locale = ''
# Define language used on main <html> tag in templates
# html_language = 'en'
# List of files to copy from the source directory to the destination.
# A symbolic link is used if ``orig_link`` is set to True (see above).
# files_to_copy = (('extra/robots.txt', 'robots.txt'),

View File

@@ -1,5 +1,5 @@
<!doctype html>
<html lang="en">
<html lang="{{ settings.html_language }}">
<head>
{% block head %}
<meta charset="utf-8">

View File

@@ -1,5 +1,5 @@
<!doctype html>
<html lang="en">
<html lang="{{ settings.html_language }}">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">

View File

@@ -1,5 +1,5 @@
<!doctype html>
<html lang="en">
<html lang="{{ settings.html_language }}">
<head>
{% block head %}
<meta charset="utf-8">