From eccbc77f049813106d3d6f169f46df8bff737819 Mon Sep 17 00:00:00 2001 From: highjun10170 Date: Tue, 8 Oct 2024 10:32:43 +0900 Subject: [PATCH] Fix: Link path for Publication fixed --- data/publications.ts | 4 ++-- src/app/publications/page.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data/publications.ts b/data/publications.ts index dc8340a..5a7a374 100644 --- a/data/publications.ts +++ b/data/publications.ts @@ -74,8 +74,8 @@ const publications: { date, published: true, supplementary: { - paper: fs.existsSync(`public/publications/papers/${key}.pdf`) ? `${key}.pdf` : undefined, - slide: fs.existsSync(`public/publications/slides/${key}.pdf`) ? `${key}.pdf` : undefined, + paper: fs.existsSync(`public/publications/papers/${key}.pdf`) ? `/publications/papers/${key}.pdf` : undefined, + slide: fs.existsSync(`public/publications/slides/${key}.pdf`) ? `/publications/slides/${key}.pdf` : undefined, video: supplementaries[key]?.video, code: supplementaries[key]?.code, } diff --git a/src/app/publications/page.tsx b/src/app/publications/page.tsx index 45a23ce..7148cba 100644 --- a/src/app/publications/page.tsx +++ b/src/app/publications/page.tsx @@ -10,7 +10,7 @@ const Publication: React.FC = (publication) => {

{publication.venue + (publication.published ? "" : " (To be appear)")}

{[[publication.supplementary.paper, "paper", "blue"], - [publication.supplementary.video, "slide", "yellow"], + [publication.supplementary.slide, "slide", "yellow"], [publication.supplementary.code, "code", "gray"], [publication.supplementary.video, "video", "red"]].map(([link, type, color]) => ( link &&