fix: remove file extension from uri

This commit is contained in:
Keisuke Hirata 2024-09-04 19:37:06 +09:00
parent 11210336cd
commit 7c600da4f5

View File

@ -106,7 +106,7 @@ export default async function init(db: Postgres) {
if (stat.isDirectory()) { if (stat.isDirectory()) {
scanDir(dir); scanDir(dir);
} else { } else {
articleFiles.push({ path: `${path}/${file}`, id: file }); articleFiles.push({ path: `${path}/${file}`, id: file.replace('.md', '') });
} }
} }
} }