Skip to content

Commit dbd76f1

Browse files
authored
Merge pull request #1353 from prezly/feature/dev-21638-we-should-always-fill-in-the-story-grid-12-items-before
[DEV-21638] Used fixed default page size for hub stories
2 parents cf29cc7 + a0cde94 commit dbd76f1

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

app/[localeCode]/(index)/page.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Locale } from '@prezly/theme-kit-nextjs';
1+
import { DEFAULT_PAGE_SIZE, type Locale } from '@prezly/theme-kit-nextjs';
22
import type { Metadata } from 'next';
33
import dynamic from 'next/dynamic';
44

@@ -64,9 +64,7 @@ export default async function StoriesIndexPage(props: Props) {
6464
<HubStories
6565
layout={themeSettings.layout}
6666
localeCode={params.localeCode}
67-
// we're subtracting one story because there's no highlighted
68-
// story in hub sites
69-
pageSize={getStoryListPageSize(themeSettings.layout) - 1}
67+
pageSize={DEFAULT_PAGE_SIZE}
7068
showDate={themeSettings.show_date}
7169
showSubtitle={themeSettings.show_subtitle}
7270
storyCardVariant={themeSettings.story_card_variant}

0 commit comments

Comments
 (0)