From 135990fa41c43753d05eb9c854dbace1edf4bcd4 Mon Sep 17 00:00:00 2001
From: Nalin Dalal <116961144+NalinDalal@users.noreply.github.com>
Date: Tue, 23 Sep 2025 11:31:47 +0000
Subject: [PATCH] updated the code with correct conventions in the required
places
---
src/components/RelatedItems/index.astro | 44 ++++++++++++++++---------
src/layouts/SketchesLayout.astro | 6 +++-
2 files changed, 34 insertions(+), 16 deletions(-)
diff --git a/src/components/RelatedItems/index.astro b/src/components/RelatedItems/index.astro
index 4de7cafc49..683c029652 100644
--- a/src/components/RelatedItems/index.astro
+++ b/src/components/RelatedItems/index.astro
@@ -26,21 +26,35 @@ const { title, items, class: className } = Astro.props;
{title}
- {
- items.map((i) => {
- if (isCurationResponse(i)) {
- return ;
- }
- switch (i.collection) {
- case "reference":
- return ;
- case "examples":
- return ;
- case "events":
- return ;
- }
- })
- }
+ {items.map((i) => {
+ if (isCurationResponse(i)) {
+ return (
+ -
+
+
+ );
+ }
+ switch (i.collection) {
+ case "reference":
+ return (
+ -
+
+
+ );
+ case "examples":
+ return (
+ -
+
+
+ );
+ case "events":
+ return (
+ -
+
+
+ );
+ }
+ })}
diff --git a/src/layouts/SketchesLayout.astro b/src/layouts/SketchesLayout.astro
index 0c8481b840..ff1a9e448c 100644
--- a/src/layouts/SketchesLayout.astro
+++ b/src/layouts/SketchesLayout.astro
@@ -26,7 +26,11 @@ const { entries, totalNumSketches, currentPage } = Astro.props;
- {entries.map((entry) => )}
+ {entries.map((entry) => (
+ -
+
+
+ ))}