From 6f34ca46526eb169b0ca63dbd4f7e8befbc3b7fb Mon Sep 17 00:00:00 2001 From: Jamie Pine Date: Wed, 15 Jun 2022 15:06:08 -0700 Subject: [PATCH] (fix) landing: react helmet --- apps/landing/src/pages/blog/post.page.tsx | 69 ++++++++++--------- apps/landing/src/pages/index.page.tsx | 17 +++++ .../src/renderer/_default.page.server.tsx | 46 +++++-------- 3 files changed, 72 insertions(+), 60 deletions(-) diff --git a/apps/landing/src/pages/blog/post.page.tsx b/apps/landing/src/pages/blog/post.page.tsx index 516495c4a..9532e12c2 100644 --- a/apps/landing/src/pages/blog/post.page.tsx +++ b/apps/landing/src/pages/blog/post.page.tsx @@ -15,46 +15,49 @@ function MarkdownPage({ post }: { post: PostOrPage }) { console.log(post); return ( -
+ <> {post?.title} - Spacedrive Blog + - {post && ( - <> -
-
- -
-
-
-

- {post?.title} -

-

- by {post?.primary_author?.name} ·{' '} - {new Date(post?.published_at ?? '').toLocaleDateString()} -

-
-
- {post?.tags?.map((tag: Tag) => { - return ; - })} -
-
-
- - )} -
+
+ {post && ( + <> +
+
+ +
+
+
+

+ {post?.title} +

+

+ by {post?.primary_author?.name} ·{' '} + {new Date(post?.published_at ?? '').toLocaleDateString()} +

+
+
+ {post?.tags?.map((tag: Tag) => { + return ; + })} +
+
+
+ + )} +
+ ); } diff --git a/apps/landing/src/pages/index.page.tsx b/apps/landing/src/pages/index.page.tsx index b95a67f23..433fce17f 100644 --- a/apps/landing/src/pages/index.page.tsx +++ b/apps/landing/src/pages/index.page.tsx @@ -1,5 +1,6 @@ import clsx from 'clsx'; import React, { Suspense, useEffect, useState } from 'react'; +import { Helmet } from 'react-helmet'; import { ReactComponent as Info } from '@sd/interface/assets/svg/info.svg'; @@ -79,6 +80,22 @@ function Page() { return ( <> + + Spacedrive — A file manager from the future. + + + + +