Added default dir="ltr" (#307)

Added default (i.e. "ltr") value of "dir" attribute of "html" and "body" tags instead of empty.
This commit is contained in:
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

View file

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