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:
parent
60dfd9aa4b
commit
cb57401039
1 changed files with 2 additions and 2 deletions
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue