From 907499cd6ec29418b0cf8a37db0415eef9cc640f Mon Sep 17 00:00:00 2001 From: -akku- <151517253+akku1139@users.noreply.github.com> Date: Thu, 15 Feb 2024 19:06:31 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=BF=E3=81=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Articles.astro | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/Articles.astro b/src/components/Articles.astro index 0b61e52..b96c7d8 100644 --- a/src/components/Articles.astro +++ b/src/components/Articles.astro @@ -1,4 +1,4 @@ -//--- +--- import { ofetch } from "ofetch"; import ArticleCard from "./ArticleCard.astro"; @@ -70,7 +70,7 @@ const compareDates = (a: { published_at: string } | { publish_at: string } | { c }; const sortedData = combinedData.sort(compareDates); console.log(sortedData); -//--- +---
{ @@ -83,7 +83,7 @@ console.log(sortedData); poster_name={article.user.name} poster_icon_url={article.user.avatar_small_url} tag={(article.article_type === "idea" ? {text: "IDEA", bg: "bg-violet-500"} : {text: "TECH", bg: "bg-blue-200"})} - >); + />); } else if(article.site === "note") { return (} poster_name={article.user.name} poster_icon_url={article.user.profile_image_path} - >); + />); } else if(article.site === "qiita") { return (} poster_name={article.user.id} poster_icon_url={article.user.profile_image_url} - >); + />); } }) }