From a86813023124dad7663689a10c6d398acfdbfecd Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Tue, 28 Sep 2021 00:00:07 +0200 Subject: [PATCH] announcement bar --- .../website/src/components/NewsHeader/NewsHeader.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/packages/website/src/components/NewsHeader/NewsHeader.js b/packages/website/src/components/NewsHeader/NewsHeader.js index 5d17cd0f..cdbbffb7 100644 --- a/packages/website/src/components/NewsHeader/NewsHeader.js +++ b/packages/website/src/components/NewsHeader/NewsHeader.js @@ -26,23 +26,19 @@ const NewsHeader = () => { if (!latestNews) return null; // no news - // hardcoded news for now - const CURRENT_NEWS_URL = - "https://blog.sia.tech/mysky-your-home-on-the-global-operating-system-of-the-future-5a288f89825c"; - const CURRENT_NEWS_TXT = "MySky: Your Home on the Global Operating System of the Future"; + const title = latestNews.node.frontmatter.title; + const link = { to: latestNews.node.fields.slug }; return (
- {/* {latestNews.node.frontmatter.title} */} - {CURRENT_NEWS_TXT} + {title}