Skip to content

Commit

Permalink
chore(site/blog): move post to md
Browse files Browse the repository at this point in the history
  • Loading branch information
qhanw committed Apr 30, 2024
1 parent 3b71cfb commit 1fd705e
Show file tree
Hide file tree
Showing 23 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions site/blog/app/(web)/code-snippets/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import seo from "@/utils/seo";

export async function generateMetadata() {
return seo({
title: "Projects",
description: "工作中一些值得展示的项目成果",
title: "Code Snippets",
description: "常用的代码及算法代码片段。",
});
}

Expand Down
2 changes: 1 addition & 1 deletion site/blog/app/(web)/lib/posts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import readingTime from "reading-time";

import { getGitLastUpdatedTimeStamp } from "./utils";

const postsDir = join(process.cwd(), "posts");
const postsDir = join(process.cwd(), "md/posts");

type ReadingTime = {
text: string;
Expand Down
4 changes: 2 additions & 2 deletions site/blog/app/(web)/posts/[slug]/MDXContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import rehypeAutolinkHeadings from "rehype-autolink-headings";
import rehypeShiki from "@shikijs/rehype";

// mdx components
import Button from "@/posts-mdx/next-mdx/button";
import CssGradientBtn from "@/posts-mdx/css-gradient/GradientBtn";
import Button from "@/md/posts-mdx/next-mdx/button";
import CssGradientBtn from "@/md/posts-mdx/css-gradient/GradientBtn";

import "remark-gh-alerts/styles/github-base.css";
import "remark-gh-alerts/styles/github-colors-light.css";
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 1fd705e

Please sign in to comment.