diff --git a/bun.lockb b/bun.lockb index a03ebd560..ae928e29f 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 6997cc7a4..cb9376ce1 100644 --- a/package.json +++ b/package.json @@ -8,22 +8,22 @@ "start": "vinxi start" }, "devDependencies": { - "@iconify/json": "^2.2.220", - "unocss": "^0.61.0", - "@unocss/transformer-directives": "^0.61.0" + "@iconify/json": "^2.2.250", + "unocss": "^0.62.4", + "@unocss/transformer-directives": "^0.62.4" }, "dependencies": { - "@docsearch/css": "^3.6.0", + "@docsearch/css": "^3.6.1", "@docsearch/js": "3", "@mdx-js/mdx": "^3.0.1", "@solidjs/meta": "^0.29.4", - "@solidjs/router": "^0.13.5", - "@solidjs/start": "^1.0.1", - "@vinxi/plugin-mdx": "^3.7.1", + "@solidjs/router": "^0.14.5", + "@solidjs/start": "^1.0.6", + "@vinxi/plugin-mdx": "^3.7.2", "rehype-highlight": "^7.0.0", - "solid-js": "^1.8.17", + "solid-js": "^1.8.22", "solid-mdx": "^0.0.7", - "vinxi": "^0.3.12" + "vinxi": "^0.4.3" }, "engines": { "node": ">=18" diff --git a/public/news/nvui.jpeg b/public/news/nvui.jpeg new file mode 100644 index 000000000..136604d04 Binary files /dev/null and b/public/news/nvui.jpeg differ diff --git a/public/news/nvui.webp b/public/news/nvui.webp new file mode 100644 index 000000000..aaf860b7d Binary files /dev/null and b/public/news/nvui.webp differ diff --git a/public/news/v2.0.jpeg b/public/news/v2.0.jpeg new file mode 100644 index 000000000..4b65e4f84 Binary files /dev/null and b/public/news/v2.0.jpeg differ diff --git a/public/news/v2.5.jpeg b/public/news/v2.5.jpeg new file mode 100644 index 000000000..552e1f56a Binary files /dev/null and b/public/news/v2.5.jpeg differ diff --git a/public/news/volt.jpeg b/public/news/volt.jpeg new file mode 100644 index 000000000..93add9476 Binary files /dev/null and b/public/news/volt.jpeg differ diff --git a/public/news/volt.webp b/public/news/volt.webp new file mode 100644 index 000000000..24a17ad4c Binary files /dev/null and b/public/news/volt.webp differ diff --git a/src/app.tsx b/src/app.tsx index 1612f799a..18b8a7dc2 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -17,22 +17,31 @@ const metaData: any = {}; const defaultMeta = { title: "NvChad", desc: "Blazing fast Neovim config providing solid defaults and a beautiful UI, enhancing your Neovim experience.", + ogimg: "v2.5.jpeg", }; for (const path in routes) { let route = path.replace("./routes", "").replace(/\.[^.]+$/, ""); route = route.replace("index", ""); const moduleMeta = routes[path]?.meta || defaultMeta; // Accessing the meta property of the module + + moduleMeta.ogimg = moduleMeta.cover + ? moduleMeta.cover.split(".")[0] + '.jpeg' + : defaultMeta.ogimg; + metaData[route] = moduleMeta; } metaData["/themes/"] = metaData["/themes"]; export default function App() { + return ( ( + root={(props) => { + + return ( Codestin Search App @@ -47,18 +56,18 @@ export default function App() { {props.children} - )} + )}} > diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index f695c4ab8..9f29946ff 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -134,13 +134,7 @@ function Navbar(props: Proptypes) { text-lg font-medium p-4 py-3 max-w-[1700px] mx-auto`; return ( -