From 628dead2a4229fdeb048095d0c65e5b16428241e Mon Sep 17 00:00:00 2001 From: Daniel Kluge Date: Mon, 13 Jun 2022 00:02:28 +0200 Subject: [PATCH] Paths should be free to use --- lib/content/generate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/content/generate.ts b/lib/content/generate.ts index 655c933..620c6d8 100644 --- a/lib/content/generate.ts +++ b/lib/content/generate.ts @@ -20,7 +20,7 @@ async function generateProjectHTML(project: Project): Promise { const resp = await fetch(`/content/projects/${project.name}.adoc`); if (resp.status !== 200) return projectServerErrorHtml; const rawAd = await resp.text(); - const pathsCorrected = rawAd.replace(/(image[:]+)(.*\.[a-zA-Z]+)\[/g, `$1/content/projects/data_${project.name}/$2[`); + const pathsCorrected = rawAd.replace(/(image[:]+)(.*\.[a-zA-Z]+)\[/g, "$1/content/projects/$2["); const adDoc = ad.load(pathsCorrected, { attributes: { showtitle: true } }); return `${adDoc.convert(adDoc).toString()}