diff --git a/README.md b/README.md index c4bbc9c..5617657 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -Cover Image +Cover Image
diff --git a/README.zh.md b/README.zh.md index b34e01b..78658b7 100644 --- a/README.zh.md +++ b/README.zh.md @@ -1,4 +1,4 @@ -Cover Image +Cover Image
diff --git a/src/components/Button.astro b/src/components/Button.astro index e9534a6..70e4129 100644 --- a/src/components/Button.astro +++ b/src/components/Button.astro @@ -16,10 +16,8 @@ const isTag = isTagPage(currentPath) // Check if there are other languages to switch const showLanguageSwitcher = moreLocales.length > 0 - // Check if only the supported language switch list is used const useSupportedLangs = isPost || (isTag && supportedLangs.length > 0) - // Choose a language switch list according to the page type const nextUrl = useSupportedLangs ? getNextSupportedLangPath(currentPath, supportedLangs) // Switch between supported languages @@ -33,7 +31,7 @@ const nextUrl = useSupportedLangs 'lg:(fixed w-14rem top-auto bottom-47 right-[max(5.625rem,calc(50vw-34.375rem))])', ]} > - + {showLanguageSwitcher && ( )} - +
- + - + - - + +