Skip to content

Commit d5ab512

Browse files
committed
Address review feedback from ksen0
1 parent e958727 commit d5ab512

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
@@ -42,7 +42,9 @@ export const tutorialsCollection = defineCollection({
4242
data.authors.length > 0 &&
4343
data.featuredImage !== undefined &&
4444
data.featuredImageAlt !== undefined &&
45-
data.description !== undefined
45+
data.featuredImageAlt.trim().length > 0 &&
46+
data.description !== undefined &&
47+
data.description.trim().length > 0
4648
);
4749
},
4850
{

src/layouts/TutorialLayout.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const { showBanner, englishUrl } = checkTranslationBanner(
7373
className="tutorials"
7474
>
7575
{showBanner && <OutdatedTranslationBanner englishUrl={englishUrl} locale={currentLocale} />}
76-
{entry.data.authors && <section role="group" aria-label="authors">By {entry.data.authors.join(", ")}</section>}
76+
{entry.data.authors && <section role="group" aria-label="authors">By {entry.data.authors?.join(", ")}</section>}
7777
{entry.data.authorsNote && <h7>{entry.data.authorsNote}</h7>}
7878
<div class="rendered-markdown">
7979
<Content

0 commit comments

Comments
 (0)