Browse Source

Merge pull request #257 from franek/fix-default-lang

Set html lang attribute based upon locale
pull/264/head
Simon Conseil 9 years ago committed by GitHub
parent
commit
f6a8687a0a
  1. 1
      sigal/settings.py
  2. 3
      sigal/templates/sigal.conf.py
  3. 2
      sigal/themes/colorbox/templates/base.html
  4. 2
      sigal/themes/galleria/templates/index.html
  5. 2
      sigal/themes/photoswipe/templates/index.html

1
sigal/settings.py

@ -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': '',

3
sigal/templates/sigal.conf.py

@ -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'),

2
sigal/themes/colorbox/templates/base.html

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

2
sigal/themes/galleria/templates/index.html

@ -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">

2
sigal/themes/photoswipe/templates/index.html

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

Loading…
Cancel
Save