Merge pull request #257 from franek/fix-default-lang
Set html lang attribute based upon locale
This commit is contained in:
@@ -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': '',
|
||||
|
||||
@@ -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'),
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<html lang="{{ settings.html_language }}">
|
||||
<head>
|
||||
{% block head %}
|
||||
<meta charset="utf-8">
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<html lang="{{ settings.html_language }}">
|
||||
<head>
|
||||
{% block head %}
|
||||
<meta charset="utf-8">
|
||||
|
||||
Reference in New Issue
Block a user