Skip to content

Commit

Permalink
style: change style list blog
Browse files Browse the repository at this point in the history
  • Loading branch information
FarhanRafid97 committed Sep 21, 2023
1 parent 2088924 commit 12b0e40
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/blog/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import getPostMetadata from '@/utils/getPosts';

export default async function Blog() {
const data = getPostMetadata();
console.log(data);

return (
<div className="flex items-center justify-center">
<div className={`${style.cards} w-full flex flex-col gap-4`}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/modules/posts/TopThreePosts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const TopThreePosts = () => {
const getdata = async () => {
const dataReq = await fetch('http://localhost:3000/api/top-3-posts');
const jsonData = await dataReq.json();
console.log(jsonData);

if (!ignore) {
setData(jsonData.response);
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/getTop3Posts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const getTop3Posts = (): PostMetadata[] => {
const fileContents = fs.readFileSync(`src/content/${fileName}`, 'utf8');

const matterResult = matter(fileContents);
console.log(matterResult.data);

return {
title: matterResult.data.title,
date: matterResult.data.date,
Expand Down

0 comments on commit 12b0e40

Please sign in to comment.