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

Search returns tags #351

Open
3 of 4 tasks
chipzoller opened this issue Jul 25, 2022 · 2 comments
Open
3 of 4 tasks

Search returns tags #351

chipzoller opened this issue Jul 25, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@chipzoller
Copy link
Owner

I have checked all the prerequisites below and I'm yet experiencing a problem

  • Read the README.md
  • Have the extended version of Hugo installed
  • Used the exampleSite's config.toml as a reference
  • I have included my repository link. Instead of pasting long snippets here.

Describe the bug

A search, when conducted on the homepage, returns tags if they match the search term. When conducted on a post, for example, the tag is not returned.

Tags should be exempted from search. Alternatively, if they were to be returned, a nice enhancement would be to show a special icon to the left indicating which "type" of resource it is to distinguish that result from page/post results.

Avoid long-winded descriptions

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Firefox 102.0.1
@chipzoller chipzoller added the bug Something isn't working label Jul 25, 2022
@rootwork
Copy link
Contributor

I actually like that search returns tags, and I've included CSS enhancements (making the tags bold and prefacing them with "Tag: " in the search results). But I agree that this should be more transparent, and maybe default to not including them.

@chipzoller
Copy link
Owner Author

It would be cool if we can return a little tag icon before the tag name if they are to be shown in search results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants