Skip to content

Commit a75be43

Browse files
hxrshxzdoradocodes
authored andcommitted
Address review feedback from ksen0
1 parent 0e1c1fa commit a75be43

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/content/tutorials/config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ export const tutorialsCollection = defineCollection({
4444
data.authors.length > 0 &&
4545
data.featuredImage !== undefined &&
4646
data.featuredImageAlt !== undefined &&
47-
data.description !== undefined
47+
data.featuredImageAlt.trim().length > 0 &&
48+
data.description !== undefined &&
49+
data.description.trim().length > 0
4850
);
4951
},
5052
{

src/layouts/TutorialLayout.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const relatedExamples =
6262
topic="tutorials"
6363
className="tutorials"
6464
>
65-
{entry.data.authors && <h6>By {entry.data.authors.join(", ")}</h6>}
65+
{entry.data.authors && <section role="group" aria-label="authors">By {entry.data.authors?.join(", ")}</section>}
6666
{entry.data.authorsNote && <h7>{entry.data.authorsNote}</h7>}
6767
<div class="rendered-markdown">
6868
<Content

0 commit comments

Comments
 (0)