use Html Dir instead of class

This commit is contained in:
FarisZR 2022-03-04 01:37:26 +03:00
parent a833a6ebf3
commit 39a58b66d1

View File

@ -1,6 +1,5 @@
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}" class="direction-{{ .Language.LanguageDirection | default "ltr" }}">
<!-- https://github.com/adityatelange/hugo-PaperMod/pull/47 -->
<html lang="{{ .Site.LanguageCode }}" dir="{{ default `ltr` .Language.LanguageDirection }}">
<head>
{{- partial "head/head.html" . -}}
{{- block "head" . -}}{{ end }}