chipzoller / hugo-clarity

A theme for Hugo based on VMware Clarity
Other
571 stars 263 forks source link

Search returns tags #351

Open chipzoller opened 2 years ago

chipzoller commented 2 years ago

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

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):

rootwork commented 2 years ago

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 commented 2 years ago

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.