Added default dir="ltr" (#307)

Added default (i.e. "ltr") value of "dir" attribute of "html" and "body" tags instead of empty.
soper-book
Nikolay Raspopov 2021-02-03 08:42:32 +00:00 committed by GitHub
parent 60dfd9aa4b
commit cb57401039
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="{{ .Site.Language.Lang }}" dir={{ .Site.Language.LanguageDirection }}>
<html lang="{{ .Site.Language.Lang }}" dir="{{ .Site.Language.LanguageDirection | default "ltr" }}">
<head>
{{ hugo.Generator }}
@ -7,7 +7,7 @@
{{ partial "docs/inject/head" . }}
</head>
<body dir={{ .Site.Language.LanguageDirection }}>
<body dir="{{ .Site.Language.LanguageDirection | default "ltr" }}">
<input type="checkbox" class="hidden toggle" id="menu-control" />
<input type="checkbox" class="hidden toggle" id="toc-control" />
<main class="container flex">