From f0c03a9b8e15387c4defd0a0e3e0298324406fae Mon Sep 17 00:00:00 2001 From: flu0r1ne Date: Mon, 28 Aug 2023 21:33:44 -0500 Subject: Add wg2nd --- pages/logs/[directory].tsx | 4 ++-- pages/logs/index.tsx | 18 ++++++++++-------- 2 files changed, 12 insertions(+), 10 deletions(-) (limited to 'pages/logs') diff --git a/pages/logs/[directory].tsx b/pages/logs/[directory].tsx index c3760f7..59875f1 100644 --- a/pages/logs/[directory].tsx +++ b/pages/logs/[directory].tsx @@ -36,7 +36,7 @@ export const getStaticProps: GetStaticProps = async ( const post = await getPostFromDirectory(directory); const markdown = await getMarkdown(post); - + return { props: { post, markdown }, } @@ -57,4 +57,4 @@ export async function getStaticPaths() { paths, fallback: false }; -} \ No newline at end of file +} diff --git a/pages/logs/index.tsx b/pages/logs/index.tsx index a10fdee..358dff7 100644 --- a/pages/logs/index.tsx +++ b/pages/logs/index.tsx @@ -19,14 +19,16 @@ const Logs : FC = ({ posts }) => { - -
    - { - posts.map(({ directory, meta }) => ( -
  • {meta.name}
  • - )) - } -
+ <> + +
    + { + posts.map(({ directory, meta }) => ( +
  • {meta.name}
  • + )) + } +
+
); }; -- cgit v1.2.3