From ae1c77aada6b529596d81ba9c851fc0257da7525 Mon Sep 17 00:00:00 2001 From: Haitao Pan Date: Tue, 11 Nov 2025 12:53:05 +0800 Subject: [PATCH] feat: add CommunityFeed to template configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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) --- dashboard/src/lib/cms/templates/default/config.ts | 1 + dashboard/src/modules/templates/types.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dashboard/src/lib/cms/templates/default/config.ts b/dashboard/src/lib/cms/templates/default/config.ts index 6e98409..59bd9ab 100644 --- a/dashboard/src/lib/cms/templates/default/config.ts +++ b/dashboard/src/lib/cms/templates/default/config.ts @@ -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' }, ], }, diff --git a/dashboard/src/modules/templates/types.ts b/dashboard/src/modules/templates/types.ts index 4e09f59..559a50b 100644 --- a/dashboard/src/modules/templates/types.ts +++ b/dashboard/src/modules/templates/types.ts @@ -14,10 +14,11 @@ export type TemplateComponent = 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