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:
Sebastian Skałacki 2020-04-22 23:58:01 +02:00 committed by GitHub
parent 6025683e3d
commit 4a19f20383
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 2 deletions

View file

@ -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 %}

View file

@ -8,7 +8,7 @@ common-js:
---
<!DOCTYPE html>
<html lang="en">
<html lang="{{ page.language | default: site.language | default: 'en' }}">
{% include head.html %}