Skip to content

Commit 2bd56c6

Browse files
committed
respect explicitely disabled searchbox in navbar
Same fix as for sidebar in 0ba4ad1
1 parent 2a83abb commit 2bd56c6

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

news/changelog-1.6.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ All changes included in 1.6:
104104
- ([#10567](https://github.com/quarto-dev/quarto-cli/issues/10567)): Generate breadcrumbs correctly for documents using a level-1 heading as the title.
105105
- ([#10616](https://github.com/quarto-dev/quarto-cli/issues/10268)): Add a `z-index` setting to the 'back to top' button to ensure it is always visible.
106106
- ([#10864](https://github.com/quarto-dev/quarto-cli/issues/10864)): Support detection of `og:image:alt` attribute from auto-discovered images.
107+
- ([#9905](https://github.com/quarto-dev/quarto-cli/issues/9905)): Setting `search: false` in `navbar` config for `website` in `_quarto.yml` correctly opt-out sidebar.
107108

108109
### Quarto Blog
109110

src/project/types/website/website-navigation.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1232,7 +1232,9 @@ async function navbarEjsData(
12321232
const searchOpts = await searchOptions(project);
12331233
const data: Navbar = {
12341234
...navbar,
1235-
search: searchOpts && searchOpts.location === "navbar"
1235+
search: navbar.search !== undefined
1236+
? navbar.search
1237+
: searchOpts && searchOpts.location === "navbar"
12361238
? searchOpts.type
12371239
: false,
12381240
background: navbar.background || "primary",

0 commit comments

Comments
 (0)