diff options
author | flu0r1ne <flu0r1ne@flu0r1ne.net> | 2023-08-28 21:33:44 -0500 |
---|---|---|
committer | flu0r1ne <flu0r1ne@flu0r1ne.net> | 2023-08-28 21:33:44 -0500 |
commit | f0c03a9b8e15387c4defd0a0e3e0298324406fae (patch) | |
tree | 564011d0265666953b17258954ff68614ff6566a /pages/logs | |
parent | 2f0439621cff059e414d67f6ce43a7a6c4de13bc (diff) | |
download | homepage-f0c03a9b8e15387c4defd0a0e3e0298324406fae.tar.xz homepage-f0c03a9b8e15387c4defd0a0e3e0298324406fae.zip |
Add wg2nd
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> ); }; |