Add album slug

This commit is contained in:
Lynn Smeria 2018-08-29 15:41:10 +02:00
parent 645c0a5daf
commit af52557429
2 changed files with 2 additions and 1 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "publikator", "name": "publikator",
"version": "0.13.0", "version": "0.14.0",
"main": "index.js", "main": "index.js",
"repository": "https://github.com/aengl/publikator.git", "repository": "https://github.com/aengl/publikator.git",
"author": "Lynn Smeria <ae@cephea.de>", "author": "Lynn Smeria <ae@cephea.de>",

View file

@ -92,6 +92,7 @@ module.exports = {
{ {
path: newPath, path: newPath,
audio_url: `/assets/albums/${folderName}/${fileName}`, audio_url: `/assets/albums/${folderName}/${fileName}`,
album_slug: folderName,
slug: stripExtension(fileName), slug: stripExtension(fileName),
}, },
coverPath coverPath