feat: add CommunityFeed to template configuration

- Update HomePageTemplateSlots type to include CommunityFeed
- Add CommunityFeed slot to default layout config
- CMS content now displays CommunityFeed between ArticleFeed and Sidebar

🤖 Generated with [Claude Code](https://claude.com/claude-code)
This commit is contained in:
Haitao Pan 2025-11-11 12:53:05 +08:00
parent c36a9e0d17
commit ae1c77aada
2 changed files with 3 additions and 1 deletions

View File

@ -19,6 +19,7 @@ export const defaultHomeLayoutConfig: CommonHomeLayoutConfig = {
gridClassName: 'grid gap-8 lg:grid-cols-[minmax(0,1fr)_360px] lg:items-start lg:gap-12',
slots: [
{ key: 'ArticleFeed' },
{ key: 'CommunityFeed' },
{ key: 'Sidebar' },
],
},

View File

@ -14,10 +14,11 @@ export type TemplateComponent<TSlots extends TemplateSlots = TemplateSlots> = Co
export interface HomePageTemplateSlots extends TemplateSlots {
ProductMatrix: ComponentType
ArticleFeed: ComponentType
CommunityFeed: ComponentType
Sidebar: ComponentType
}
export type HomePageSlotKey = 'ProductMatrix' | 'ArticleFeed' | 'Sidebar'
export type HomePageSlotKey = 'ProductMatrix' | 'ArticleFeed' | 'CommunityFeed' | 'Sidebar'
export type HomePageTemplateProps = TemplateRenderProps<HomePageTemplateSlots>