diff --git a/site/blog/app/(web)/components/Theme.tsx b/site/blog/app/(web)/components/Theme.tsx index ab42762..e616169 100644 --- a/site/blog/app/(web)/components/Theme.tsx +++ b/site/blog/app/(web)/components/Theme.tsx @@ -7,11 +7,11 @@ export default function Theme() { const isDark = theme === "dark"; return ( - setTheme(isDark ? "light" : "dark")} - className="text-slate-600 dark:text-slate-200 cursor-pointer" + className="text-slate-600 dark:text-slate-300 hover:text-slate-800 dark:hover:text-slate-100 cursor-pointer" > - + ); } diff --git a/site/blog/app/middleware.ts b/site/blog/app/middleware.ts new file mode 100644 index 0000000..d18802d --- /dev/null +++ b/site/blog/app/middleware.ts @@ -0,0 +1,11 @@ +export const config = { + matcher: [ + /* + * Match all request paths except for the ones starting with: + * - _next/static (static files) + * - _next/image (image optimization files) + * - favicon.ico, sitemap.xml, robots.txt (metadata files) + */ + "/((?!_next/static|_next/image|favicon.ico|sitemap.xml|robots.txt).*)", + ], +}; diff --git a/site/blog/public/sitemap-a.xml b/site/blog/public/sitemap-a.xml new file mode 100644 index 0000000..fad32de --- /dev/null +++ b/site/blog/public/sitemap-a.xml @@ -0,0 +1,103 @@ + + + +https://qhan.wang +2024-10-12T04:18:52.839Z + + +https://qhan.wang/posts +2024-10-12T04:18:52.839Z + + +https://qhan.wang/projects +2024-10-12T04:18:52.839Z + + +https://qhan.wang/posts/nginx-websocket +2024-08-14T09:47:15.000Z + + +https://qhan.wang/posts/geometry-calculation +2024-08-14T06:54:07.000Z + + +https://qhan.wang/posts/clipper-lib-guide +2024-08-14T06:54:07.000Z + + +https://qhan.wang/posts/pixijs-custom-cursor +2024-08-14T06:54:07.000Z + + +https://qhan.wang/posts/git-common-commands +2024-08-14T06:54:07.000Z + + +https://qhan.wang/posts/next-unocss +2024-08-14T06:54:07.000Z + + +https://qhan.wang/posts/next-mdx-contentlayer +2024-08-14T06:54:07.000Z + + +https://qhan.wang/posts/next-mdx +2024-08-14T06:54:07.000Z + + +https://qhan.wang/posts/ssr-timezone +2024-08-14T06:54:07.000Z + + +https://qhan.wang/posts/css-gradient-circle +2024-08-14T06:54:07.000Z + + +https://qhan.wang/posts/local-nginx-docker +2024-08-14T06:54:07.000Z + + +https://qhan.wang/posts/dnd-kit-ant-table +2024-08-14T06:54:07.000Z + + +https://qhan.wang/posts/test-playwright-auth +2024-08-14T06:54:07.000Z + + +https://qhan.wang/posts/browser-cache +2024-08-14T06:54:07.000Z + + +https://qhan.wang/posts/css-aspect-ratio +2024-08-14T06:54:07.000Z + + +https://qhan.wang/posts/css-centered +2024-08-14T06:54:07.000Z + + +https://qhan.wang/posts/react-component-lifecycle +2024-08-14T06:54:07.000Z + + +https://qhan.wang/posts/cursor-position +2024-08-14T06:54:07.000Z + + +https://qhan.wang/posts/css-checkbox-beautify +2024-08-14T06:54:07.000Z + + +https://qhan.wang/posts/css-custom-scrollbar +2024-08-14T06:54:07.000Z + + +https://qhan.wang/posts/css-nth-child +2024-08-14T06:54:07.000Z + + +https://qhan.wang/posts/regexp +2024-08-14T06:54:07.000Z + +