diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-04-08 16:54:39 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-04-08 16:54:39 -0300 |
commit | 776abf8d697716902692f357c6f179c1e681369f (patch) | |
tree | a75e7f63ffc13121c3c08f1f78c10bc883b4d4e1 /src/content/dependencies/generateAlbumInfoPage.js | |
parent | 0cbfa8c1b70080c7ec4eb352902cf76f8ef30fcf (diff) |
html: drastically simplify template/slot system
Diffstat (limited to 'src/content/dependencies/generateAlbumInfoPage.js')
-rw-r--r-- | src/content/dependencies/generateAlbumInfoPage.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/content/dependencies/generateAlbumInfoPage.js b/src/content/dependencies/generateAlbumInfoPage.js index dcd8589c..f0a23259 100644 --- a/src/content/dependencies/generateAlbumInfoPage.js +++ b/src/content/dependencies/generateAlbumInfoPage.js @@ -36,8 +36,6 @@ export default { generate(data, relations, { language, }) { - // page.title = language.$('albumPage.title', {album: data.name}); - // page.themeColor = data.color; // page.styleRules = [ @@ -45,12 +43,14 @@ export default { // relations.colorStyleRules, // ]; - // page.socialEmbed = relations.socialEmbed; - return relations.layout - .slot('title', language.$('albumPage.title', {album: data.name})) - .slot('cover', relations.content.cover) - .slot('mainContent', relations.content.main.content) - .slot('socialEmbed', relations.socialEmbed); + .slots({ + title: language.$('albumPage.title', {album: data.name}), + + cover: relations.content.cover, + mainContent: relations.content.main.content, + + // socialEmbed: relations.socialEmbed, + }); }, }; |