Skip to content

Commit a2ce5f2

Browse files
refactor(blog): remove BlogI18nControls from listing page
Remove the BlogI18nControls component from the Posts listing page now that language switching is handled by the global DocsLanguageSwitcher component. Co-Authored-By: Hagicode <noreply@hagicode.com> Signed-off-by: newbe36524 <newbe36524@qq.com>
1 parent 0df8280 commit a2ce5f2

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

  • src/integrations/starlight-blog-no-tags/components

src/integrations/starlight-blog-no-tags/components/Posts.astro

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import type { StarlightBlogEntry } from '../../../../node_modules/starlight-blog/libs/content.ts';
33
import type { Locale } from '../../../../node_modules/starlight-blog/libs/i18n.ts';
44
5-
import BlogI18nControls from '@/components/BlogI18nControls.astro';
65
import Preview from './Preview.astro';
76
87
interface Props {
@@ -13,8 +12,6 @@ interface Props {
1312
const { entries, locale } = Astro.props;
1413
---
1514

16-
<BlogI18nControls routeLocale={locale ?? 'root'} />
17-
1815
<div class="posts" data-pagefind-ignore>
1916
{entries.map((entry) => <Preview {entry} {locale} />)}
2017
</div>

0 commit comments

Comments
 (0)