mirror of
https://github.com/thiloho/thiloho.github.io.git
synced 2025-11-22 02:11:35 +01:00
Remove astro unique hash from track name
This commit is contained in:
@@ -7,7 +7,10 @@ const albumCovers = await Astro.glob("../content/album-covers/*");
|
|||||||
|
|
||||||
const processedAlbumCovers = albumCovers.map((cover) => {
|
const processedAlbumCovers = albumCovers.map((cover) => {
|
||||||
const filePathWithoutParams = cover.default.src.split("?")[0];
|
const filePathWithoutParams = cover.default.src.split("?")[0];
|
||||||
const filename = parse(filePathWithoutParams).name;
|
const filename = parse(filePathWithoutParams).name.replace(
|
||||||
|
/\.[a-zA-Z0-9]+$/,
|
||||||
|
"",
|
||||||
|
);
|
||||||
|
|
||||||
const lastDashIndex = filename.lastIndexOf(" - ");
|
const lastDashIndex = filename.lastIndexOf(" - ");
|
||||||
const artists =
|
const artists =
|
||||||
|
|||||||
Reference in New Issue
Block a user