diff options
author | Nikolay Raspopov <raspopov@cherubicsoft.com> | 2021-02-03 08:42:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-03 09:42:32 +0100 |
commit | cb57401039cde7e705c6e10c4eef774e4c07427f (patch) | |
tree | 6de2d0735cc6ace60945f782b91c5fcbcde9209e /layouts/_default/baseof.html | |
parent | 60dfd9aa4b25128bf17cbf5868c6d1bb0964fad3 (diff) |
Added default dir="ltr" (#307)
Added default (i.e. "ltr") value of "dir" attribute of "html" and "body" tags instead of empty.
Diffstat (limited to 'layouts/_default/baseof.html')
-rw-r--r-- | layouts/_default/baseof.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 8974985..d3a6a46 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -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"> |