We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
hreflang
<html>
1 parent 4afb933 commit 4c2b0d9Copy full SHA for 4c2b0d9
1 file changed
_includes/header.html
@@ -1,5 +1,5 @@
1
-<!DOCTYPE html>
2
-<html>
+<!DOCTYPE html>{% assign hreflang = 'en' %}{% for lang in site.languages %}{% if lang.path == page.url %}{% assign hreflang = lang.iso-alpha2 %}{% endif %}{% endfor %}
+<html hreflang="{{hreflang}}">
3
<head>
4
<meta charset="utf-8">
5
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
0 commit comments