Skip to content

Commit 63857b2

Browse files
committed
Update index.astro
1 parent 6e0d9a4 commit 63857b2

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

astro/src/pages/index.astro

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ try {
2626
})
2727
})
2828
})
29-
29+
console.log(images);
3030
} catch (error) {
3131
console.log(error)
3232
}
@@ -353,17 +353,22 @@ try {
353353
<div class="step-text"><span class="step">Step 2) </span>Submit it as a pull request to the <a href="/gallery">art gallery</a>.</div>
354354
<div class="step-2-css">
355355
{
356-
images.filter(x => ["leaf", "tree", "square-disarray"].some(x => x.includes(x.dir))).map(img => {
357-
return (
358-
<div class="frame">
359-
<a
360-
class="border"
361-
href={img.href}>
362-
<img class="thumbnail" alt={img.alt} src={img.img} />
363-
</a>
364-
</div>
356+
images
357+
.filter(img =>
358+
["leaf", "tree", "square-disarray"]
359+
.some(x => img.dir.includes(x))
365360
)
366-
})
361+
.map(img => {
362+
return (
363+
<div class="frame">
364+
<a
365+
class="border"
366+
href={img.href}>
367+
<img class="thumbnail" alt={img.alt} src={img.img} />
368+
</a>
369+
</div>
370+
)
371+
})
367372
}
368373
</div>
369374
</div>

0 commit comments

Comments
 (0)