[tor-commits] [manual/develop] add language information to html declaration, better for external indexing

emmapeel at torproject.org emmapeel at torproject.org
Wed Jan 15 13:17:53 UTC 2020


commit db0347d24e7f75ee2b2b153a84ed794e1385431b
Author: emma peel <emma.peel at riseup.net>
Date:   Wed Nov 6 19:06:36 2019 +0100

    add language information to html declaration, better for external indexing
---
 templates/layout.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/layout.html b/templates/layout.html
index 27166a1..c5929cc 100644
--- a/templates/layout.html
+++ b/templates/layout.html
@@ -1,5 +1,5 @@
 <!doctype html>
-<html xmlns="http://www.w3.org/1999/xhtml" {% if bag('alternatives', this.alt, 'direction') == 'text-right' %}dir="rtl"{% endif %}>
+<html xmlns="http://www.w3.org/1999/xhtml" lang="{{ this.alt }}" {% if bag('alternatives', this.alt, 'direction') == 'text-right' %}dir="rtl" {% endif %}>
 <meta charset="utf-8">
 <meta name="viewport" content="width=device-width, initial-scale=1">
 <meta name="description" content="{{ _('Defend yourself against tracking and surveillance. Circumvent censorship.') }} | {{ this.title }}">





More information about the tor-commits mailing list