Skip to content

Commit

Permalink
extract slug folder to independent directory
Browse files Browse the repository at this point in the history
  • Loading branch information
kchenturtles committed Dec 23, 2023
1 parent 2909e63 commit 7f805f0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/blog/[slug]/page.tsx → app/[slug]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

import { getPostBySlug } from "../../../lib/api";
import markdownToHtml from "../../../lib/markdownToHTML";
import { getPostBySlug } from "../../lib/api";
import markdownToHtml from "../../lib/markdownToHTML";
import styles from "./styles.module.css";
import Image from "next-image-export-optimizer";
import Link from "next/link";
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion components/postPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function PostPreview({ post }: { post: Items }) {

return (
<div className = {styles.preview}>
<Link className = { styles.title } href = { `/blog/${post["slug"]}`}> {post.title}
<Link className = { styles.title } href = { `/${post["slug"]}`}> {post.title}
</Link>
<div> {post.date} </div>
</div>
Expand Down

0 comments on commit 7f805f0

Please sign in to comment.