diff --git a/assets/js/switcher-menu.js b/assets/js/switcher-menu.js index 49074bd..9619905 100644 --- a/assets/js/switcher-menu.js +++ b/assets/js/switcher-menu.js @@ -8,7 +8,7 @@ function computeMenuTranslation(switcher, optionsElement) { const isOnTop = switcher.dataset.location === 'top'; const isOnBottom = switcher.dataset.location === 'bottom'; const isOnBottomRight = switcher.dataset.location === 'bottom-right'; - const isRTL = document.body.dir === 'rtl' + const isRTL = document.documentElement.dir === 'rtl' // Stuck on the left side of the switcher. let x = switcherRect.left; diff --git a/layouts/baseof.html b/layouts/baseof.html index 5ae5e0d..d97e3c7 100644 --- a/layouts/baseof.html +++ b/layouts/baseof.html @@ -1,7 +1,7 @@ - + {{- partial "head.html" . -}} - + {{- partial "banner.html" . -}} {{- partial "navbar.html" . -}} {{- block "main" . }}{{ end -}}