Browse Source

Detect html lang attribute based on locale

pull/5543/merge
Ivanq 1 year ago
parent
commit
238b4e9cef
  1. 21
      _layouts/default.html

21
_layouts/default.html

@ -0,0 +1,21 @@
<!DOCTYPE html>
{%- assign lang = page.locale | split: "_" | first -%}
<html lang="{{ lang | default: page.lang | default: site.lang | default: "en" }}">
{%- include head.html -%}
<body>
{%- include header.html -%}
<main class="page-content" aria-label="Content">
<div class="wrapper">
{{ content }}
</div>
</main>
{%- include footer.html -%}
</body>
</html>
Loading…
Cancel
Save