We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10de867 commit cc4e511Copy full SHA for cc4e511
src/components/ResourcesBySelector.tsx
@@ -94,14 +94,14 @@ export default function ResourcesBySelector({
94
let title;
95
96
if (page.collection === "docs") {
97
- const titleItem = page.data.head.find(item => item.tag === 'title');
+ const titleItem = page.data.head.find(
98
+ (item) => item.tag === "title",
99
+ );
100
title = titleItem ? titleItem.content : page.data.title;
101
} else {
102
title = page.data.title;
103
}
104
-
105
return (
106
<a
107
key={page.id}
@@ -115,8 +115,7 @@ export default function ResourcesBySelector({
115
<span className="line-clamp-3" title={page.data.description}>
116
{page.data.description}
117
</span>
118
- )
119
- }
+ )}
120
</a>
121
);
122
})}
0 commit comments