« get me outta code hell

generateArtistInfoPageChunkedList.js « dependencies « content « src - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generateArtistInfoPageChunkedList.js
blob: f9db4265405a6ad705f67c83341a08d4656fbb77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
export default {
  slots: {
    groupInfo: {
      type: 'html',
      mutable: false,
    },

    chunks: {
      type: 'html',
      mutable: false,
    },
  },

  generate: (slots, {html, language}) =>
    html.tag('dl',
      {[html.onlyIfContent]: true},

      [
        slots.groupInfo,

        slots.chunks,

        !html.isBlank(slots.groupInfo) &&
          html.tag('dt', {class: 'filter-notice'},
            {style: 'display: none'},

            language.encapsulate('artistPage.filterNotice', capsule =>
              language.$(capsule, {
                clear:
                  html.tag('a', {href: '#'},
                    language.$(capsule, 'clear')),
              }))),
      ]),
};