Allow configuring lang attribute on <html> tag (#608)
Add a page/site configuration variable named "language", which can be set either in _config.yml or in a front matter in order to customize value of "lang" attribute on <html> element. Previously, it was hardcoded to "en".
This commit is contained in:
parent
6025683e3d
commit
4a19f20383
4 changed files with 5 additions and 2 deletions
|
@ -15,7 +15,7 @@ common-js:
|
|||
---
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="{{ page.language | default: site.language | default: 'en' }}">
|
||||
<!-- Beautiful Jekyll | MIT license | Copyright Dean Attali 2016 -->
|
||||
{% include head.html %}
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ common-js:
|
|||
---
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="{{ page.language | default: site.language | default: 'en' }}">
|
||||
|
||||
{% include head.html %}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue