blob: f2fddfa577add2172c5024d4eb20d9f52503a3ca (
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: 'search-sidebar-box'},
collapsible: false,
content: [
html.tag('input', {class: 'wiki-search-input'},
{placeholder: `Search for anything`},
{type: 'search'})
],
}),
};
|