Skip to content

Commit

Permalink
🔧 remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
Oculux314 committed Jul 6, 2024
1 parent 95dc47d commit 70fd659
Showing 1 changed file with 31 additions and 29 deletions.
60 changes: 31 additions & 29 deletions web/src/pages/blogs/[blog].astro
Original file line number Diff line number Diff line change
Expand Up @@ -36,41 +36,43 @@ 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
---

<Layout>
<div class="m-auto max-w-screen-md">
<BlogHeader imageUrl={imageUrl} title={title} authorName={authorName} datePublished={datePublished} />
<BlogContent content={content} />
<h3>More Blogs</h3>
<SwiperCarouselWrapper articles={articles} />
<!-- <SwiperCarouselWrapper articles={articles} /> -->
</div>
</Layout>

0 comments on commit 70fd659

Please sign in to comment.