Skip to content

Commit 328c2d8

Browse files
committed
fix: 92dba84 & 71ade35
1 parent 71ade35 commit 328c2d8

2 files changed

Lines changed: 11 additions & 9 deletions

File tree

src/components/views/ListView.astro

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -150,27 +150,28 @@ if (collectionType === 'feeds') {
150150
<div class="py-2 op-50">nothing here yet</div>
151151
) : (
152152
sortedStreamItems.map((item, idx) => {
153+
const { data } = item
153154
return (
154155
<>
155156
{!isSameYear(
156-
item.pubDate,
157-
sortedStreamItems[idx - 1]?.pubDate
157+
data.pubDate,
158+
sortedStreamItems[idx - 1]?.data.pubDate
158159
) && (
159160
<Categorizer
160161
{idx}
161162
needId={tocEnabled}
162-
text={getYear(item.pubDate).toString()}
163+
text={getYear(data.pubDate).toString()}
163164
/>
164165
)}
165166
<ListItem
166167
{idx}
167168
{collectionType}
168-
redirect={item.link}
169-
title={item.id}
170-
video={item.video}
171-
radio={item.radio}
172-
date={item.pubDate}
173-
platform={item.platform}
169+
title={data.id}
170+
date={data.pubDate}
171+
radio={data.radio}
172+
video={data.video}
173+
platform={data.platform}
174+
redirect={data.link}
174175
/>
175176
</>
176177
)

src/content/schema.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { z } from 'astro:content'
2+
import type { SchemaContext } from 'astro:content'
23

34
/* Pages */
45
export const pageSchema = z.object({

0 commit comments

Comments
 (0)