Skip to content

Commit

Permalink
chore(site/blog): update dependencies and add code snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
Qhan W authored and Qhan W committed Apr 24, 2024
1 parent 565db59 commit fc9e3b8
Show file tree
Hide file tree
Showing 5 changed files with 4,263 additions and 3,308 deletions.
Empty file.
22 changes: 22 additions & 0 deletions site/blog/app/(web)/code-snippets/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import Footer from "@/app/(web)/components/Footer";
import seo from "@/utils/seo";

export async function generateMetadata() {
return seo({
title: "Projects",
description: "工作中一些值得展示的项目成果",
});
}

export default function Projects() {
return (
<>
{/* text-transparent text-stroke-2 text-stroke-hex-aaa */}
<div className="text-3xl text-center font-semibold opacity-30 mb-8 mx-auto">
Code Snippets
</div>
<div className="grid gap-4 prose mx-auto">该部分为常用代码片段收集</div>
<Footer className="prose mx-auto" />
</>
);
}
2 changes: 1 addition & 1 deletion site/blog/app/robots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default function robots(): MetadataRoute.Robots {
rules: {
userAgent: "*",
allow: "/",
// disallow: "/private/",
disallow: "/projects",
},
sitemap: "https://qhan.wang/sitemap.xml",
};
Expand Down
28 changes: 14 additions & 14 deletions site/blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
},
"dependencies": {
"@amap/amap-jsapi-loader": "^1.0.1",
"@shikijs/rehype": "^1.1.7",
"clsx": "^2.1.0",
"@shikijs/rehype": "^1.3.0",
"clsx": "^2.1.1",
"dayjs": "^1.11.10",
"gray-matter": "^4.0.3",
"next": "14.1.3",
"next": "14.2.2",
"next-mdx-remote": "^4.4.1",
"nextjs-toploader": "^1.6.6",
"nextjs-toploader": "^1.6.12",
"photoswipe": "^5.4.3",
"plyr": "^3.7.8",
"react": "18.2.0",
Expand All @@ -36,17 +36,17 @@
"devDependencies": {
"@iconify-json/heroicons": "^1.1.20",
"@iconify-json/ri": "^1.1.20",
"@types/node": "20.11.25",
"@types/react": "18.2.64",
"@types/react-dom": "18.2.21",
"@unocss/postcss": "^0.58.5",
"@types/node": "20.12.7",
"@types/react": "18.2.79",
"@types/react-dom": "18.2.25",
"@unocss/postcss": "^0.58.9",
"@vercel/analytics": "^1.2.2",
"autoprefixer": "10.4.18",
"autoprefixer": "10.4.19",
"eslint": "8.57.0",
"eslint-config-next": "14.1.3",
"postcss": "8.4.35",
"sass": "^1.71.1",
"typescript": "5.4.2",
"unocss": "^0.58.5"
"eslint-config-next": "14.2.2",
"postcss": "8.4.38",
"sass": "^1.75.0",
"typescript": "5.4.5",
"unocss": "^0.58.9"
}
}
Loading

0 comments on commit fc9e3b8

Please sign in to comment.