Skip to content

Commit b150806

Browse files
committed
Minor fixes
1 parent 31754ff commit b150806

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

src/app/(main)/resources/reading-resources-section.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function ReadingResourcesSection() {
2323
with the ecosystem.
2424
</p>
2525
<Button href="/community/resources" className="mt-10 sm:w-fit">
26-
Explore reading resources
26+
Go to Reading Resources
2727
</Button>
2828
</div>
2929

src/app/(main)/resources/reading/reading-page.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ export async function ReadingLibraryPage({
123123
frontMatter: {},
124124
}))
125125

126+
const FIRST_PAGE_COUNT = 9
127+
126128
return (
127129
<main className="gql-all-anchors-focusable pb-8 md:pb-16 lg:pb-24">
128130
<NavbarFixed />
@@ -172,13 +174,13 @@ export async function ReadingLibraryPage({
172174
})}
173175
</nav>
174176
<ul className="mt-10 grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3">
175-
{filtered.slice(0, 9).map(resource => (
177+
{filtered.slice(0, FIRST_PAGE_COUNT).map(resource => (
176178
<li key={resource.url}>
177179
<ReadingResourcesCard resource={resource} />
178180
</li>
179181
))}
180182
</ul>
181-
{filtered.length > 9 && (
183+
{filtered.length > FIRST_PAGE_COUNT && (
182184
<details className="group">
183185
{/* we're using <details> for SEO and Cmd+F support */}
184186
<summary className="pointer-events-none mt-2 flex list-none items-center justify-center group-open:hidden">
@@ -190,8 +192,8 @@ export async function ReadingLibraryPage({
190192
Load more
191193
</Button>
192194
</summary>
193-
<ul className="grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3">
194-
{filtered.slice(6).map(resource => {
195+
<ul className="mt-4 grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3">
196+
{filtered.slice(FIRST_PAGE_COUNT).map(resource => {
195197
return (
196198
<li key={resource.url}>
197199
<ReadingResourcesCard resource={resource} />

vercel.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,11 @@
500500
"destination": "/community/contribute/essential-links",
501501
"permanent": true
502502
},
503+
{
504+
"source": "/community/resources",
505+
"destination": "/resources",
506+
"permanent": true
507+
},
503508
{
504509
"source": "/community/resources/official-channels",
505510
"destination": "/community/official-channels",

0 commit comments

Comments
 (0)