mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Patrick Kollitsch
13.05.2025 92ee7adbb8717c2788b047d9a94d4513ee75c02c
theme(fix): use html.dir attribute configured in language setup

Signed-off-by: Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
1 files deleted
1 files modified
9 ■■■■ changed files
layouts/_default/baseof.html 2 ●●● patch | view | raw | blame | history
layouts/partials/func/GetLanguageDirection.html 7 ●●●●● patch | view | raw | blame | history
layouts/_default/baseof.html
@@ -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">
layouts/partials/func/GetLanguageDirection.html
File was deleted