Added the lang attribute to the tag

This commit is contained in:
Al Murad Uzzaman
2024-08-26 17:04:55 +06:00
parent 25cc4c533e
commit 1fb605ad85
4 changed files with 31 additions and 32 deletions
+1 -2
View File
@@ -2,7 +2,6 @@
import Logo from "@/components/Logo.astro";
import ThemeSwitcher from "@/components/ThemeSwitcher.astro";
import config from "@/config/config.json";
import languages from "@/config/language.json";
import LanguageSwitcher from "@/helpers/LanguageSwitcher";
import {
getLangFromUrl,
@@ -64,7 +63,7 @@ if (disabledLanguages.includes(lang)) {
class={`nav-link inline-flex items-center ${
menu.children
?.map(({ url }: { url: string }) =>
slugSelector(url, lang)
slugSelector(url, lang),
)
.includes(pathname)
? "active"