Browse Source

use lang in html tag

Thomas Buck 3 years ago
parent
commit
8edc50c6a5
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      page.html

+ 6
- 1
page.html View File

@@ -1,5 +1,10 @@
1 1
 <!DOCTYPE html>
2
-<html>
2
+<!--%
3
+if page.get("lang", "en") == "de":
4
+    print '<html lang="de">'
5
+else:
6
+    print '<html lang="en">'
7
+%-->
3 8
 <head>
4 9
     <meta charset="{{ htmlspecialchars(__encoding__) }}" />
5 10
     <title>{{ htmlspecialchars(page.title) }} - xythobuz.de</title>

Loading…
Cancel
Save