foo-dogsquared/hugo-theme-arch-terminal

[FEATURE] Quick search list in taxonomy pages

foo-dogsquared opened this issue · 1 comments

For some reason, I did some rabbit hole browsing until I got lost and saw the individual tag pages of this website.

If you look at one of the tags page, you would see a quick list of search queries with the particular tag. It's pretty neat. The feature has to be data-driven thus customizable (using the data folder).

Here's a quick draft of how to customize it:

The data would be called as query and contains a list of objects with the following keys:

  • id - The identifier of the item. It's mandatory.
  • url - The search URL of a specific site. This has a special where it should contain a specific pattern where the name should appear. For now, this specific pattern will be ${{__DATA__}}. Also mandatory.
  • name - The name of the search site. This is optional as the theme will use the id as the name instead, if absent.

This is now implemented in the development branch. Just waiting for the official release.