News
-- {formatDate(item?.publishedDate)} ago · {item?.site} -
- - - {item?.title} -- {item?.text} -
- -- {/each} -
diff --git a/src/lib/components/News.svelte b/src/lib/components/News.svelte index a2121669..2953f7ee 100644 --- a/src/lib/components/News.svelte +++ b/src/lib/components/News.svelte @@ -32,7 +32,7 @@ return `${days} day${days !== 1 ? "s" : ""}`; } }; - + /* let videoId = null; function checkIfYoutubeVideo(link) { @@ -49,7 +49,7 @@ return null; } } - +*/ function loadMoreData() { const nextIndex = newsList?.length; const newArticles = rawData?.slice(nextIndex, nextIndex + 20); @@ -83,8 +83,8 @@
+ {item?.text?.length > 200 + ? item?.text?.slice(0, 200) + "..." + : item?.text} +
-- {item?.text?.length > 200 - ? item?.text?.slice(0, 200) + "..." - : item?.text} -
- -