mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-08 00:52:43 +00:00
theme(fix): use html.dir attribute configured in language setup
Signed-off-by: Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
This commit is contained in:
parent
7e80c50dee
commit
92ee7adbb8
@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ site.Language.LanguageCode }}" {{- with partials.IncludeCached "func/GetLanguageDirection.html" "GetLanguageDirection" }} dir="{{ . }}" {{- end }}>
|
||||
<html lang="{{ site.Language.LanguageCode }}" {{- if eq site.Language.LanguageDirection "rtl" }} dir="rtl" {{- end }}>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
|
@ -1,7 +0,0 @@
|
||||
{{ $dir := "" }}
|
||||
{{ if compare.Ge hugo.Version "0.67.1" }}
|
||||
{{ with site.Language.LanguageDirection }}
|
||||
{{ $dir = . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ return $dir }}
|
Loading…
x
Reference in New Issue
Block a user