Skip to content

Commit 7db429e

Browse files
author
15363205631
committed
fixed directory name to lowercase
1 parent f98cd0a commit 7db429e

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

src/lib/ZNav/ZNav.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
font-size: 0.9rem;
4848
text-decoration: none;
4949
color: var(--header-text-light-color);
50+
text-transform: capitalize;
5051
&:hover {
5152
text-decoration: solid underline;
5253
color: var(--header-text-hover-color);

src/routes/+layout.server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ export async function load() {
1010
.filter((d) => d.isDirectory())
1111
.map((d) => path.join(d.parentPath, d.name).replaceAll('\\', '/').replaceAll(baseDir, ''));
1212

13-
const docDir = 'Docs/';
13+
const docDir = 'docs/';
1414
const docItems = await readdir(docDir, { recursive: true, withFileTypes: true });
15-
const docDirectory = docItems.map((d) => path.join(d.parentPath, d.name).replaceAll('\\', '/').replaceAll(docDir, '/Docs/').replace('.md', ''));
15+
const docDirectory = docItems.map((d) => path.join(d.parentPath, d.name).replaceAll('\\', '/').replaceAll(docDir, '/docs/').replace('.md', ''));
1616

1717
directory = [...directory, ...docDirectory].filter((i) => !i.match(/\[.*\]/g));
1818

src/routes/docs/+layout.server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as path from "node:path";
44
/** @type {import('./$types').LayoutServerLoad} */
55
export async function load() {
66

7-
const docDir = 'Docs/';
7+
const docDir = 'docs/';
88
const docItems = await readdir(docDir, { recursive: true, withFileTypes: true });
99

1010
const mdContent = await Promise.all(

src/routes/docs/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010

1111
<ul>
1212
{#each data.mdContent as md}
13-
<li><a href="Docs/{md.doc}">{md.doc}</a></li>
13+
<li><a href="docs/{md.doc}">{md.doc}</a></li>
1414
{/each}
1515
</ul>

src/routes/posts/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66

77
<ul>
88
{#each data.summaries as { slug, title }}
9-
<li><a href="/Posts/{slug}">{title}</a></li>
9+
<li><a href="/posts/{slug}">{title}</a></li>
1010
{/each}
1111
</ul>

src/routes/posts/[slug]/+layout.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<ul>
1313
{#each data.summaries as { slug, title }}
1414
<li>
15-
<a href="/Posts/{slug}">{title}</a>
15+
<a href="/posts/{slug}">{title}</a>
1616
</li>
1717
{/each}
1818
</ul>

0 commit comments

Comments
 (0)