« get me outta code hell

generateContentHeading.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/generateContentHeading.js
blob: baa52080d7eae3d5e797098ded632dcd6fd5ade3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
export default {
  extraDependencies: [
    'html',
  ],

  generate({html}) {
    return html.template(slot =>
      html.tag('p',
        {
          class: 'content-heading',
          id: slot('id'),
          tabindex: '0',
        },
        slot('title')));
  }
}