Hey guys, I’ve been trying to find a way to display an element if there are no pages containing a string in the URL on the site.
I’ve reached a point where I’m using assign
, but when I go to use where
with that I find it has to be an exact match. I need to use where
and have it match on containing a string eg
{% assign vacancies = site.pages | where: "path", "/current-vacancies/*" %}
but it doesn’t work. I’ve tried it without the slashes and asterisk but that still doesn’t bring back anything useful for me.
Any ideas?