Skip to content

Commit 12a4359

Browse files
authored
Dev (#223)
* update pkg * clean docs * rm unused styles * misc * add blog posts , docs etc
1 parent e10e4af commit 12a4359

25 files changed

+237
-466
lines changed

bun.lockb

9.07 KB
Binary file not shown.

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@
88
"start": "vinxi start"
99
},
1010
"devDependencies": {
11-
"@iconify/json": "^2.2.220",
12-
"unocss": "^0.61.0",
13-
"@unocss/transformer-directives": "^0.61.0"
11+
"@iconify/json": "^2.2.250",
12+
"unocss": "^0.62.4",
13+
"@unocss/transformer-directives": "^0.62.4"
1414
},
1515
"dependencies": {
16-
"@docsearch/css": "^3.6.0",
16+
"@docsearch/css": "^3.6.1",
1717
"@docsearch/js": "3",
1818
"@mdx-js/mdx": "^3.0.1",
1919
"@solidjs/meta": "^0.29.4",
20-
"@solidjs/router": "^0.13.5",
21-
"@solidjs/start": "^1.0.1",
22-
"@vinxi/plugin-mdx": "^3.7.1",
20+
"@solidjs/router": "^0.14.5",
21+
"@solidjs/start": "^1.0.6",
22+
"@vinxi/plugin-mdx": "^3.7.2",
2323
"rehype-highlight": "^7.0.0",
24-
"solid-js": "^1.8.17",
24+
"solid-js": "^1.8.22",
2525
"solid-mdx": "^0.0.7",
26-
"vinxi": "^0.3.12"
26+
"vinxi": "^0.4.3"
2727
},
2828
"engines": {
2929
"node": ">=18"

public/news/nvui.jpeg

168 KB
Loading

public/news/nvui.webp

170 KB
Binary file not shown.

public/news/v2.0.jpeg

594 KB
Loading

public/news/v2.5.jpeg

1.44 MB
Loading

public/news/volt.jpeg

189 KB
Loading

public/news/volt.webp

184 KB
Binary file not shown.

src/app.tsx

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,31 @@ const metaData: any = {};
1717
const defaultMeta = {
1818
title: "NvChad",
1919
desc: "Blazing fast Neovim config providing solid defaults and a beautiful UI, enhancing your Neovim experience.",
20+
ogimg: "v2.5.jpeg",
2021
};
2122

2223
for (const path in routes) {
2324
let route = path.replace("./routes", "").replace(/\.[^.]+$/, "");
2425
route = route.replace("index", "");
2526
const moduleMeta = routes[path]?.meta || defaultMeta; // Accessing the meta property of the module
27+
28+
moduleMeta.ogimg = moduleMeta.cover
29+
? moduleMeta.cover.split(".")[0] + '.jpeg'
30+
: defaultMeta.ogimg;
31+
2632
metaData[route] = moduleMeta;
2733
}
2834

2935
metaData["/themes/"] = metaData["/themes"];
3036

3137
export default function App() {
38+
3239
return (
3340
<Router
3441
base={import.meta.env.SERVER_BASE_URL}
35-
root={(props) => (
42+
root={(props) => {
43+
44+
return (
3645
<MetaProvider>
3746
<Title>{metaData[props.location.pathname]?.title}</Title>
3847

@@ -47,18 +56,18 @@ export default function App() {
4756

4857
<Meta
4958
name="twitter:image:src"
50-
content="https://repository-images.githubusercontent.com/345368765/343e772f-d6e9-4a6b-84dc-8936f0c2706d"
59+
content={metaData[props.location.pathname]?.ogimg}
5160
/>
5261

5362
<Meta
5463
property="og:image"
55-
content="https://repository-images.githubusercontent.com/345368765/343e772f-d6e9-4a6b-84dc-8936f0c2706d"
64+
content={metaData[props.location.pathname]?.ogimg}
5665
/>
5766

5867
<Navbar pathname={props.location.pathname} />
5968
<Suspense>{props.children}</Suspense>
6069
</MetaProvider>
61-
)}
70+
)}}
6271
>
6372
<FileRoutes />
6473
</Router>

src/components/Navbar.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,7 @@ function Navbar(props: Proptypes) {
134134
text-lg font-medium p-4 py-3 max-w-[1700px] mx-auto`;
135135

136136
return (
137-
<nav
138-
border="0 b solid slate-2 dark:dark-4"
139-
bg-white-1
140-
class="sticky top-0 z-50"
141-
dark:bg-dark-2
142-
shadow={props.pathname.includes("docs") ? "" : "lg"}
143-
>
137+
<nav class="sticky top-0 z-50 shadow-md" bg="white-1 dark:dark-3">
144138
<div class={styles}>
145139
<div md="flex gap-3 mx-auto" class="grid justify-between w-full gap-5">
146140
<Links />

0 commit comments

Comments
 (0)