From 10ea882f00a8e80fc14be7994c8fc05191e7f917 Mon Sep 17 00:00:00 2001 From: Rufus Pollock Date: Mon, 8 Nov 2021 20:08:09 +0100 Subject: [PATCH] [site/theme][xs]: move prose from Layout onto DataLiterate component as we don't want automatically on all pages. --- site/components/DataLiterate.js | 30 ++++++++++++++++-------------- site/components/Layout.js | 2 +- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/site/components/DataLiterate.js b/site/components/DataLiterate.js index 41df0275..e7f6b737 100644 --- a/site/components/DataLiterate.js +++ b/site/components/DataLiterate.js @@ -26,20 +26,22 @@ const components = { export default function DataLiterate({ children, source, frontMatter }) { return ( -
-
-

{frontMatter.title}

- {frontMatter.author && ( -

{frontMatter.author}

- )} - {frontMatter.description && ( -

{frontMatter.description}

- )} -
-
-
- -
+
+
+
+

{frontMatter.title}

+ {frontMatter.author && ( +

{frontMatter.author}

+ )} + {frontMatter.description && ( +

{frontMatter.description}

+ )} +
+
+
+ +
+
) } diff --git a/site/components/Layout.js b/site/components/Layout.js index e8d086ad..b84fa8eb 100644 --- a/site/components/Layout.js +++ b/site/components/Layout.js @@ -13,7 +13,7 @@ export default function Layout({ children, title = 'Home' }) {