How can I display only the current collection on my website?

Hello

I need help displaying only the current collection on my site .

the block of code for the sidebar is

    {% for linkItem in linklists[velaCategories].links %}
    {%- assign hasDropdown = false -%}
    {%- assign subItem = forloop.index -%}
    {%- if linklists[linkItem.handle] != empty -%}
    {%- assign hasDropdown = true -%}
    {%- endif -%}

  • {{ linkItem.title }} {%- if hasDropdown -%}
      {% for linkChildItem in linklists[linkItem.handle].links %} {%- assign hasDropdown = true -%} {%- if linklists[linkChildItem.handle] != empty -%} {%- assign hasDropdown = true -%} {%- endif -%}
    • {{ linkChildItem.title }} {%- if hasDropdown -%}
      {%- endif -%}
    • {% endfor %}
    {%- endif -%}
  • {% endfor %}

but i want to only display the current collection the user clicked instead of all the collections again.

Is there a way around it?

thanks in advance