blob: 6632a4e8b2a93c1cf7a3cd541f0a038c92670fc7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
export default {
contentDependencies: ['generatePageSidebarBox'],
extraDependencies: ['html'],
relations: (relation) => ({
sidebarBox:
relation('generatePageSidebarBox'),
}),
generate: (relations, {html}) =>
relations.sidebarBox.slots({
attributes: {class: 'wiki-search-sidebar-box'},
collapsible: false,
content: [
html.tag('input', {class: 'wiki-search-input'},
{placeholder: `Search for anything`},
{type: 'search'})
],
}),
};
|