mirror of
https://github.com/10h30/astroplate.git
synced 2026-07-20 07:03:41 +09:00
Added the lang attribute to the tag
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user