From 5e2855d01316c0c8e73404e0ef68a6eb0288aca2 Mon Sep 17 00:00:00 2001 From: whidix Date: Sat, 31 Dec 2022 16:01:49 +0100 Subject: [PATCH] fix url --- src/lib/projects.ts | 6 ++++-- src/lib/shs.ts | 6 ++++-- src/routes/shs/internship/+page.md | 2 ++ src/routes/shs/ppp/+page.md | 6 ------ 4 files changed, 10 insertions(+), 10 deletions(-) delete mode 100644 src/routes/shs/ppp/+page.md diff --git a/src/lib/projects.ts b/src/lib/projects.ts index 2be792b..7b0903f 100644 --- a/src/lib/projects.ts +++ b/src/lib/projects.ts @@ -12,9 +12,11 @@ export type Mdsvex = { export const projects = new Map( Object.entries( - import.meta.glob('../routes/projects/*/*{.md,.svelte,index.md.index.svelte}') + import.meta.glob('../routes/projects/*/*{.md,.svelte,+page.md.index.svelte}') ).map(([path, load]) => [ - path.replace(/(\.md|\.svelte|\/index\.md|\/index\.svelte)$/, '').replace(/^\.\.\/routes/, ''), + path + .replace(/(\+page\.md|\.svelte|\/index\.md|\/index\.svelte)$/, '') + .replace(/^\.\.\/routes/, ''), load ]) ); diff --git a/src/lib/shs.ts b/src/lib/shs.ts index bcaa4a4..0a3a47b 100644 --- a/src/lib/shs.ts +++ b/src/lib/shs.ts @@ -12,9 +12,11 @@ export type Mdsvex = { export const shs = new Map( Object.entries( - import.meta.glob('../routes/shs/*/*{.md,.svelte,index.md.index.svelte}') + import.meta.glob('../routes/shs/*/*{.md,.svelte,+page.md.index.svelte}') ).map(([path, load]) => [ - path.replace(/(\.md|\.svelte|\/index\.md|\/index\.svelte)$/, '').replace(/^\.\.\/routes/, ''), + path + .replace(/(\+page\.md|\.svelte|\/index\.md|\/index\.svelte)$/, '') + .replace(/^\.\.\/routes/, ''), load ]) ); diff --git a/src/routes/shs/internship/+page.md b/src/routes/shs/internship/+page.md index a88fa54..51c676e 100644 --- a/src/routes/shs/internship/+page.md +++ b/src/routes/shs/internship/+page.md @@ -7,6 +7,8 @@ tags: - svelte --- +# Internship report + During the year, I developed a website for a new association in Toulouse related to TISA (Toulouse, Computer Science, Security and Association). I developed this website using the Svelte framework because I was intrigued by its promise of performance and simplicity of development. During this internship, I learned to use Svelte effectively and to set up a solid project architecture. I also had to work closely with the members of the association to understand their needs and vision for the website, in order to create a final product that met their expectations. diff --git a/src/routes/shs/ppp/+page.md b/src/routes/shs/ppp/+page.md deleted file mode 100644 index cc9ef4d..0000000 --- a/src/routes/shs/ppp/+page.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: 🎚️ Internship report -date: 2022-11-15 -description: -tags: ----