-
Notifications
You must be signed in to change notification settings - Fork 61
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
hugo: Allow preselected tags on search #477
Conversation
❌ Deploy Preview for cue failed.Built without sensitive environment variables
|
4d81a5f
to
fcca273
Compare
Adds a feature to allow tags to added to the search widget. These will be preselected tags, but can be manually removed after by the user. To test and compare, see: https://cuelang.org/examples/shortcodes/search/ Fixes cue-lang/cue#3394 Signed-off-by: Wies de Graaf <[email protected]>
fcca273
to
3963a41
Compare
@Wies-UsMedia Is this ready for (re-)review? |
It is yep! |
CI passed. Preview is here: https://cl-1203609-1--cue-cls.netlify.app/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed via https://cl-1203609-1--cue-cls.netlify.app/examples/shortcodes/search/.
We still have a corner-corner case where removing the last tag leaves an empty q
query string param, but then resets the tags to the predefined set, but that's sufficiently niche that I'll just track it as a new issue that we can address if it becomes a problem. Edit: tracked as cue-lang/cue#3556
See commit message.
To test, go to https://deploy-preview-477--cue.netlify.app/examples/shortcodes/search/ and you should be able to add new tags, as well as remove the preselected tags.