diff options
Diffstat (limited to 'pages/logs')
-rw-r--r-- | pages/logs/[directory].tsx | 4 | ||||
-rw-r--r-- | pages/logs/index.tsx | 18 |
2 files changed, 12 insertions, 10 deletions
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<Props> = ({ posts }) => { <DefaultPage path={"/logs"} > - <Markdown md={md} /> - <ul className={styles.logList}> - { - posts.map(({ directory, meta }) => ( - <li key={directory}><a href={'/logs/' + directory}>{meta.name}</a></li> - )) - } - </ul> + <> + <Markdown md={md} /> + <ul className={styles.logList}> + { + posts.map(({ directory, meta }) => ( + <li key={directory}><a href={'/logs/' + directory}>{meta.name}</a></li> + )) + } + </ul> + </> </DefaultPage> ); }; |