Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zwbetz-gh/vanilla-bootstrap-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachary Betz <zwbetz@gmail.com>2019-01-16 00:58:12 +0300
committerZachary Betz <zwbetz@gmail.com>2019-01-16 00:58:12 +0300
commit67678904ece9a750c9bcb41631e114bf51c3683b (patch)
treef2714be59867f98d45fe0101030df71c8869eb37
parent66f8b565b3c2cabe2c03c9ca9fb76a2a5b267a1b (diff)
Make html lang attr configurable
-rw-r--r--layouts/_default/baseof.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 5dee9b2..33d2d4b 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -1,5 +1,6 @@
<!doctype html>
-<html lang="en" class="h-100">
+{{ $lang := site.Language.Lang | default "en" }}
+<html lang="{{ $lang }}" class="h-100">
{{ partial "head.html" . }}
<body class="d-flex flex-column h-100">
{{ partial "nav.html" . }}