% const notebook = theme.notebooks.tree[page.notebook] if (item.filter == null) { item.filter = 'auto' } if (item.placeholder == null && item.filter == 'auto') { if (theme.wiki.tree[page.wiki]?.name) { item.placeholder = __('search.search_in', theme.wiki.tree[page.wiki]?.name) } else if (notebook) { item.placeholder = __('search.search_in', notebook.name || __('btn.notebook')) item.filter = notebook.base_dir } } function layoutDiv() { var el = '' el += `