From 70fd65924e7a786bc174730a624ac1d59ff984ee Mon Sep 17 00:00:00 2001 From: Oculux Date: Sat, 6 Jul 2024 20:29:53 +1200 Subject: [PATCH] :wrench: remove console.log --- web/src/pages/blogs/[blog].astro | 60 +++++++++++++++++--------------- 1 file changed, 31 insertions(+), 29 deletions(-) diff --git a/web/src/pages/blogs/[blog].astro b/web/src/pages/blogs/[blog].astro index b795ab6..09078ed 100644 --- a/web/src/pages/blogs/[blog].astro +++ b/web/src/pages/blogs/[blog].astro @@ -36,34 +36,36 @@ const authorName = blogData.attributes.author; const datePublished = new Date(blogData.attributes.createdAt).toLocaleString(); const content = blogData.attributes.content; -// Temporary data for the carousel -const articles = [ - { - title: "Sample Article 1", - description: "This is a description for Sample Article 1", - href: "/sample-article-1", - src: "https://via.placeholder.com/150", - date: new Date(), - authors: [{ name: "Author 1", profileIcon: "/path/to/author1.jpg" }], - }, - { - title: "Sample Article 2", - description: "This is a description for Sample Article 2", - href: "/sample-article-2", - src: "https://via.placeholder.com/150", - date: new Date(), - authors: [{ name: "Author 2", profileIcon: "/path/to/author2.jpg" }], - }, - { - title: "Sample Article 3", - description: "This is a description for Sample Article 3", - href: "/sample-article-3", - src: "https://via.placeholder.com/150", - date: new Date(), - authors: [{ name: "Author 3", profileIcon: "/path/to/author3.jpg" }], - }, -]; -console.log("Articles passed to SwiperCarouselWrapper:", articles); // Log the articles to debug +// Temporary can be deleted + +// // Temporary data for the carousel +// const articles = [ +// { +// title: "Sample Article 1", +// description: "This is a description for Sample Article 1", +// href: "/sample-article-1", +// src: "https://via.placeholder.com/150", +// date: new Date(), +// authors: [{ name: "Author 1", profileIcon: "/path/to/author1.jpg" }], +// }, +// { +// title: "Sample Article 2", +// description: "This is a description for Sample Article 2", +// href: "/sample-article-2", +// src: "https://via.placeholder.com/150", +// date: new Date(), +// authors: [{ name: "Author 2", profileIcon: "/path/to/author2.jpg" }], +// }, +// { +// title: "Sample Article 3", +// description: "This is a description for Sample Article 3", +// href: "/sample-article-3", +// src: "https://via.placeholder.com/150", +// date: new Date(), +// authors: [{ name: "Author 3", profileIcon: "/path/to/author3.jpg" }], +// }, +// ]; +// console.log("Articles passed to SwiperCarouselWrapper:", articles); // Log the articles to debug --- @@ -71,6 +73,6 @@ console.log("Articles passed to SwiperCarouselWrapper:", articles); // Log the a

More Blogs

- +