mirror of
https://github.com/upscayl/upscayl.git
synced 2024-11-30 18:24:27 +01:00
Update links
This commit is contained in:
parent
6835c42d1f
commit
192d23b591
@ -219,12 +219,13 @@ const Home = () => {
|
||||
|
||||
// FETCH NEWS
|
||||
useEffect(() => {
|
||||
fetch("/news.md")
|
||||
fetch("https://raw.githubusercontent.com/upscayl/upscayl/main/news.md")
|
||||
.then((res) => {
|
||||
return res.blob();
|
||||
})
|
||||
.then(async (data) => {
|
||||
const newsData = await data.text();
|
||||
if (!newsData) return;
|
||||
const markdownData = matter(newsData);
|
||||
console.log("🚀 => file: index.tsx:229 => markdownData:", markdownData);
|
||||
console.log("🚀 => file: index.tsx:229 => news:", news);
|
||||
|
Loading…
Reference in New Issue
Block a user