diff options
Diffstat (limited to 'src/content/dependencies/generateAlbumInfoPage.js')
-rw-r--r-- | src/content/dependencies/generateAlbumInfoPage.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/content/dependencies/generateAlbumInfoPage.js b/src/content/dependencies/generateAlbumInfoPage.js index 74d80e33..59c314a1 100644 --- a/src/content/dependencies/generateAlbumInfoPage.js +++ b/src/content/dependencies/generateAlbumInfoPage.js @@ -21,7 +21,16 @@ export default { return relations; }, - generate(relations, { + data(album) { + const data = {}; + + data.name = album.name; + data.color = album.color; + + return data; + }, + + generate(data, relations, { language, }) { const page = {}; |