Dynamically input product tag onto collection page using custom liquid

Hello,

My site is www.earthtoplanet.com and I’m using the Dawn theme. I’m need help adding custom text to my default collection page which dynamically shows the product tag for the collection.

For example, this page https://earthtoplanet.com/collections/all/banana contains all of my products with the tag “banana” and I’d like there to be text that says “Here are all of the banana cartoons”.

Likewise, this page https://earthtoplanet.com/collections/all/chocolate contains all of the products with the tag “chocolate” so I’d like the text to say “Here are all of the chocolate cartoons”.

I suspect to accomplish this I’ll need to use a Custom Liquid section that pulls the term “banana” from the URL? (Or perhaps it knows that “banana” is the product tag on the page?)

I haven’t been able to find any helpful leads yet and would really appreciate your help.

Thanks!

I eventually figured it out. So, if you’re someone who’s in the same situation, the answer is to use the {{ current_tags }} variable to pull in the, well, current tag being used for that collection view.