From f42a9a3052086a6369d6a5566c613fccc4d3c6d6 Mon Sep 17 00:00:00 2001
From: Furkan Sahin <furkan-dev@proton.me>
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<Props> = ({ posts }) => {
-  console.log(posts);
+  
+
   return(
     <DefaultPage
       path={"/logs"}
     >
-      <ul>
+      <Markdown md={md} />
+      <ul className={styles.logList}>
       {
         posts.map(({ directory, meta }) => (
           <li><a href={'/logs/' + directory}>{meta.name}</a></li>
-- 
cgit v1.2.3

