Skip to content

fix(search): eliminate duplicate searchbar#1059

Merged
saurabhraghuvanshii merged 1 commit into
layer5io:masterfrom
Sbragul26:fix/duplicate-search-field
May 20, 2026
Merged

fix(search): eliminate duplicate searchbar#1059
saurabhraghuvanshii merged 1 commit into
layer5io:masterfrom
Sbragul26:fix/duplicate-search-field

Conversation

@Sbragul26
Copy link
Copy Markdown
Member

Notes for Reviewers

This PR fixes #1057
It eliminates the duplicate search field by disabling the sidebar search, keeping only the top navbar search. Sidebar content now fills the available space from the top. Users can access search using the navbar search bar or by pressing “/” to quickly focus the search.

Signed commits

  • Yes, I signed my commits.

Signed-off-by: Sbragul26 <sbragul26@gmail.com>
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request disables the sidebar search box in the hugo.toml configuration. Feedback was provided regarding a potential accessibility issue where mobile users might lose all search functionality, suggesting that the navbar search visibility be adjusted or a mobile-specific toggle be added.

Comment thread hugo.toml
sidebar_menu_compact = true
# Set to true to hide the sidebar search box (the top nav search box will still be displayed if search is enabled)
sidebar_search_disable = false
sidebar_search_disable = true
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Disabling the sidebar search while the navbar search is hidden on mobile devices (due to the d-none d-lg-block classes in layouts/partials/navbar.html) will leave mobile users without any search functionality. To maintain accessibility, consider updating the navbar search to be visible on all screen sizes or providing a mobile-specific search toggle.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Desktop view: navbar search is shown and sidebar search is removed.
Mobile view: sidebar search is automatically shown by the theme, so search still works on both screens with no loss of functionality.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 20, 2026

PR Preview Action v1.6.3
Preview removed because the pull request was closed.
2026-05-20 07:34 UTC

@saurabhraghuvanshii saurabhraghuvanshii merged commit 27239e8 into layer5io:master May 20, 2026
4 checks passed
@saurabhraghuvanshii
Copy link
Copy Markdown
Member

Thanks @Sbragul26 lgtm!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement] Eliminate duplicate Search field

2 participants