Skip to content

Commit

Permalink
fixes access to meta.path
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamDiakite committed Oct 23, 2023
1 parent 3e6fdf7 commit 3a07508
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 3 deletions.
Empty file added recurrent/_clinique-en.md
Empty file.
8 changes: 8 additions & 0 deletions recurrent/_clinique-fr.md
Original file line number Diff line number Diff line change
@@ -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.
4 changes: 4 additions & 0 deletions recurrent/_fika-en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Fika
date: 2021-09-01
---
16 changes: 16 additions & 0 deletions recurrent/_fika-fr.md
Original file line number Diff line number Diff line change
@@ -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.
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,19 @@ export const load = async (event) => {

const type = types[event.params.newsType]


let post
if (type === 'blog') {
const posts = await fetchData('blog')
post = posts.filter(p => p.meta.slug === event.params.slug)
}
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 {
Expand Down

0 comments on commit 3a07508

Please sign in to comment.