🌐 Add RTL language support

This commit is contained in:
James Panther
2022-01-11 16:17:49 +11:00
parent 1b9b660abe
commit cdf56a1e11
15 changed files with 161 additions and 36 deletions
+3 -1
View File
@@ -31,7 +31,9 @@
<nav>
<ul class="flex flex-col list-none sm:flex-row">
{{ range .Site.Menus.main }}
<li class="mb-1 text-right sm:mb-0 sm:mr-7 sm:last:mr-0">
<li
class="mb-1 ltr:text-right rtl:text-left sm:mb-0 ltr:sm:mr-7 ltr:sm:last:mr-0 rtl:sm:ml-7 rtl:sm:last:ml-0"
>
<a
class="hover:underline hover:decoration-primary-500 hover:decoration-2 hover:underline-offset-2"
href="{{ .URL }}"