Skip to content

Commit

Permalink
[fix] exchange link and post
Browse files Browse the repository at this point in the history
  • Loading branch information
lowk3v committed Jan 5, 2024
1 parent 072f4d3 commit b2c7f94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions layouts/components/Link.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import config from "@config/config.json";
import { dateFormat } from "@lib/utils/dateFormat";
import Link from "next/link";
const { blog_folder } = config.settings;

const PostLink = ({ post, className }) => {
return (
Expand Down
8 changes: 4 additions & 4 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ const Home = ({ posts }) => {
} else if (post.frontmatter.categories.includes("Link")) {
// get posts are contain category Link
return (
<Post
<PostLink
className="col-12 mb-6 sm:col-6"
key={"post-key-" + i}
key={"postLink-key-" + i}
post={post}
/>
);
Expand All @@ -105,9 +105,9 @@ const Home = ({ posts }) => {
)}else {
// normal posts
return (
<PostLink
<Post
className="col-12 mb-6 sm:col-6"
key={"postLink-key-" + i}
key={"post-key-" + i}
post={post}
/>
);
Expand Down

0 comments on commit b2c7f94

Please sign in to comment.