Skip to content

Commit 4c2b0d9

Browse files
committed
Add hreflang attribute to the <html> tag
1 parent 4afb933 commit 4c2b0d9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

_includes/header.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<!DOCTYPE html>
2-
<html>
1+
<!DOCTYPE html>{% assign hreflang = 'en' %}{% for lang in site.languages %}{% if lang.path == page.url %}{% assign hreflang = lang.iso-alpha2 %}{% endif %}{% endfor %}
2+
<html hreflang="{{hreflang}}">
33
<head>
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

0 commit comments

Comments
 (0)