diff --git a/public/image/languageSwitcher.svg b/public/image/languageSwitcher.svg new file mode 100644 index 0000000..e93f63b --- /dev/null +++ b/public/image/languageSwitcher.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/Header.astro b/src/components/Header.astro index af0c4ce..0d330d5 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -14,7 +14,7 @@ const marginClass = {

diff --git a/src/components/LanguageSwitcher.astro b/src/components/LanguageSwitcher.astro new file mode 100644 index 0000000..ffc6f0c --- /dev/null +++ b/src/components/LanguageSwitcher.astro @@ -0,0 +1,60 @@ +--- +import themeConfig from '@/config' + +const langs = ['', ...themeConfig.global.moreLocale] +--- + + + + + + diff --git a/src/components/Navigation.astro b/src/components/Navigation.astro index 339183f..d44f019 100644 --- a/src/components/Navigation.astro +++ b/src/components/Navigation.astro @@ -51,7 +51,7 @@ const isTagActive = isTagPage(currentPath) const isAboutActive = isAboutPage(currentPath) --- -