Skip to content

Commit

Permalink
Merge pull request #215 from wiz/language-html-tag
Browse files Browse the repository at this point in the history
Fix hard-coded <html lang="en"> to correctly set lang attribute
  • Loading branch information
Steve Jain authored Aug 24, 2019
2 parents 42becf4 + bd58169 commit 883d1ee
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions _includes/main_nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{% for page in pages %}
<div class="dropdown-item btn-icon">
<div class="float-right">
<a href="{{ page.url }}">{{ page.language }}</a>
<a href="{{ page.url }}" hreflang="{{ page.lang }}">{{ page.language }}</a>
</div>
</div>
{% endfor %}
Expand Down Expand Up @@ -100,7 +100,7 @@
{% for page in pages %}
<div class="dropdown-item btn-icon">
<div class="float-right">
<a href="{{ page.url }}">{{ page.language }}</a>
<a href="{{ page.url }}" hreflang="{{ page.lang }}">{{ page.language }}</a>
</div>
</div>
{% endfor %}
Expand Down
4 changes: 2 additions & 2 deletions _includes/main_nav_tr.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{% for page in pages %}
<div class="dropdown-item btn-icon">
<div class="float-right">
<a href="{{ page.url }}">{{ page.language }}</a>
<a href="{{ page.url }}" hreflang="{{ page.lang }}">{{ page.language }}</a>
</div>
</div>
{% endfor %}
Expand Down Expand Up @@ -102,7 +102,7 @@
{% for page in pages %}
<div class="dropdown-item btn-icon">
<div class="float-right">
<a href="{{ page.url }}">{{ page.language }}</a>
<a href="{{ page.url }}" hreflang="{{ page.lang }}">{{ page.language }}</a>
</div>
</div>
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!doctype html>
<html lang="en">
<html lang="{{ page.lang }}">

<head>

Expand Down

0 comments on commit 883d1ee

Please sign in to comment.