Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-detect whether search plugin is enabled #1

Open
durera opened this issue Oct 26, 2024 · 0 comments
Open

Auto-detect whether search plugin is enabled #1

durera opened this issue Oct 26, 2024 · 0 comments

Comments

@durera
Copy link
Owner

durera commented Oct 26, 2024

Feature and motivation

Hide the search bar if the search plugin is disabled, e.g. with this config:

plugins:
  - glightbox:
      shadow: true
      caption_position: bottom
      auto_caption: true
      touchNavigation: false
      background: black

To enable search we would need to add search: {} to the list of plugins.

Usage example

Obviously, to eliminate what would be a broken search feature in the site if the search plugin is disabled :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant