From 3a07508cbf9695ed9b62eded15e5d179bc80b442 Mon Sep 17 00:00:00 2001 From: William Diakite Date: Sun, 22 Oct 2023 22:40:32 -0400 Subject: [PATCH] fixes access to meta.path --- recurrent/_clinique-en.md | 0 recurrent/_clinique-fr.md | 8 ++++++++ recurrent/_fika-en.md | 4 ++++ recurrent/_fika-fr.md | 16 ++++++++++++++++ .../[newsType=newsType]/[slug]/+page.server.ts | 7 ++++--- 5 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 recurrent/_clinique-en.md create mode 100644 recurrent/_clinique-fr.md create mode 100644 recurrent/_fika-en.md create mode 100644 recurrent/_fika-fr.md diff --git a/recurrent/_clinique-en.md b/recurrent/_clinique-en.md new file mode 100644 index 0000000..e69de29 diff --git a/recurrent/_clinique-fr.md b/recurrent/_clinique-fr.md new file mode 100644 index 0000000..e6572e5 --- /dev/null +++ b/recurrent/_clinique-fr.md @@ -0,0 +1,8 @@ +--- +title: Clinique numérique +date: 2021-09-01 +--- + +# La clinique numérique de l'Ouvroir + +Organisée tous les lundis de 16h à 17h, la clinique offre un accompagnement spécialisé pour outiller la recherche en histoire de l’art et en muséologie. \ No newline at end of file diff --git a/recurrent/_fika-en.md b/recurrent/_fika-en.md new file mode 100644 index 0000000..6a6b300 --- /dev/null +++ b/recurrent/_fika-en.md @@ -0,0 +1,4 @@ +--- +title: Fika +date: 2021-09-01 +--- diff --git a/recurrent/_fika-fr.md b/recurrent/_fika-fr.md new file mode 100644 index 0000000..b348829 --- /dev/null +++ b/recurrent/_fika-fr.md @@ -0,0 +1,16 @@ +--- +title: Fika collectif +subtitle: Workshop with Lena Krause +dateStart: 2022-02-15 +dateEnd: 2022-02-15 +timeStart: 01:00pm +timeEnd: 03:00pm +place: Ouvroir +link: https://mobilizon.fr/events/ee41350f-301b-4e37-b5b4-e155d9647255 +description: This workshop helps participants to get familiar with Markdown and Git. +participants: [Lena Krause] +--- + +# Fika collectif + +Les premiers mercredis du mois, le laboratoire organise une pause café et pâtisserie pour se rencontrer et socialiser, les mercredi de 15h30 à 16h30 au C-8132. diff --git a/src/routes/[news=news]/[newsType=newsType]/[slug]/+page.server.ts b/src/routes/[news=news]/[newsType=newsType]/[slug]/+page.server.ts index c651608..c6ccd6b 100644 --- a/src/routes/[news=news]/[newsType=newsType]/[slug]/+page.server.ts +++ b/src/routes/[news=news]/[newsType=newsType]/[slug]/+page.server.ts @@ -12,6 +12,7 @@ export const load = async (event) => { const type = types[event.params.newsType] + let post if (type === 'blog') { const posts = await fetchData('blog') @@ -19,11 +20,11 @@ export const load = async (event) => { } else { const basePath = type === 'meeting' - ? '/src/lib/labouvroir/cr/' - : '/src/lib/labouvroir/evenements/' + ? '/src/lib/labouvroir/cr/' + : '/src/lib/labouvroir/evenements/' const path = basePath + decodeURIComponent(event.params.slug) + '.md' const posts = await fetchData(type) - post = posts.filter(p => p.path === path) + post = posts.filter(p => p.meta.path === path) } return {