aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2015-10-26 15:45:03 -0400
committerJoey Hess <joeyh@joeyh.name>2015-10-26 15:45:40 -0400
commit70c87f56a21ea305085ec1ca88a12a47ed9f7fd9 (patch)
tree1b17af19d7f67b9ba36718861ce73a319d063961 /templates
parentbfed9a405e721e28dcfb735e75b8b51453247df9 (diff)
downloadikiwiki-70c87f56a21ea305085ec1ca88a12a47ed9f7fd9.tar
ikiwiki-70c87f56a21ea305085ec1ca88a12a47ed9f7fd9.tar.gz
Modified page.tmpl to to set html lang= and dir= when values have been specified for them, which the po plugin does.
Note that I modified the patch slightly, to avoid blank lines before the <html>, on the off chance bad html parsers care.
Diffstat (limited to 'templates')
-rw-r--r--templates/page.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/page.tmpl b/templates/page.tmpl
index 9e8b330a4..183d733e1 100644
--- a/templates/page.tmpl
+++ b/templates/page.tmpl
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<html xmlns="http://www.w3.org/1999/xhtml">
+<TMPL_IF HTML_LANG_CODE><html lang="<TMPL_VAR HTML_LANG_CODE>" dir="<TMPL_VAR HTML_LANG_DIR>" xmlns="http://www.w3.org/1999/xhtml"><TMPL_ELSE><html xmlns="http://www.w3.org/1999/xhtml"></TMPL_IF>
<head>
<TMPL_IF DYNAMIC>
<TMPL_IF FORCEBASEURL><base href="<TMPL_VAR FORCEBASEURL>" /><TMPL_ELSE>