@@ -35,7 +35,12 @@ function getDisplayMode(album) {
35
35
}
36
36
37
37
export default {
38
- contentDependencies : [ 'generateAlbumTrackListItem' , 'generateContentHeading' ] ,
38
+ contentDependencies : [
39
+ 'generateAlbumTrackListItem' ,
40
+ 'generateContentHeading' ,
41
+ 'transformContent' ,
42
+ ] ,
43
+
39
44
extraDependencies : [ 'html' , 'language' ] ,
40
45
41
46
query ( album ) {
@@ -53,6 +58,10 @@ export default {
53
58
album . trackSections . map ( ( ) =>
54
59
relation ( 'generateContentHeading' ) ) ;
55
60
61
+ relations . trackSectionDescriptions =
62
+ album . trackSections . map ( section =>
63
+ relation ( 'transformContent' , section . description ) ) ;
64
+
56
65
relations . trackSectionItems =
57
66
album . trackSections . map ( section =>
58
67
section . tracks . map ( track =>
@@ -132,6 +141,7 @@ export default {
132
141
return html . tag ( 'dl' , { class : 'album-group-list' } ,
133
142
stitchArrays ( {
134
143
heading : relations . trackSectionHeadings ,
144
+ description : relations . trackSectionDescriptions ,
135
145
items : relations . trackSectionItems ,
136
146
137
147
name : data . trackSectionNames ,
@@ -140,6 +150,7 @@ export default {
140
150
startIndex : data . trackSectionStartIndices ,
141
151
} ) . map ( ( {
142
152
heading,
153
+ description,
143
154
items,
144
155
145
156
name,
@@ -172,12 +183,17 @@ export default {
172
183
} ) ,
173
184
} ) ) ,
174
185
175
- html . tag ( 'dd' ,
186
+ html . tag ( 'dd' , [
187
+ html . tag ( 'blockquote' ,
188
+ { [ html . onlyIfContent ] : true } ,
189
+ description ) ,
190
+
176
191
html . tag ( listTag ,
177
192
data . hasTrackNumbers &&
178
193
{ start : startIndex + 1 } ,
179
194
180
- slotItems ( items ) ) ) ,
195
+ slotItems ( items ) ) ,
196
+ ] ) ,
181
197
] ) ) ;
182
198
183
199
case 'tracks' :
0 commit comments