From e424680fc013c291bd7eea4dc63b96401e5126a8 Mon Sep 17 00:00:00 2001 From: flu0r1ne Date: Wed, 21 Jul 2021 04:42:31 -0500 Subject: Added a timestamp and sorts posts by timestamp --- pages/logs/index.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'pages/logs/index.tsx') diff --git a/pages/logs/index.tsx b/pages/logs/index.tsx index ed3c58b..fa74aa4 100644 --- a/pages/logs/index.tsx +++ b/pages/logs/index.tsx @@ -1,24 +1,26 @@ import DefaultPage from '../../templates/Default'; import Markdown from '../../components/Markdown'; +import styles from './index.module.scss'; import { GetStaticProps, GetStaticPropsContext } from 'next'; import React, { FC } from 'react'; -import { getPosts, getMetadata, Post, PostMetadata } from '../../utils/Posts'; -//@ts-ignore +import { getPosts, Post } from '../../utils/Posts'; +// @ts-ignore import md from './logs.md'; - interface Props { posts: Post[] }; const Logs : FC = ({ posts }) => { - console.log(posts); + + return( -
    + +
      { posts.map(({ directory, meta }) => (
    • {meta.name}
    • -- cgit v1.2.3