Hi all, I need your help.
I have a site showing some basic information about internal tool we are providing. And there I’m showing relations between team and tools.
For now it’s like this:
frontmatter:
team:
- Team 1
- Team 2
code
{{ range where (where .Site.RegularPages "Section" "Section name") ".Title" "in" ".Params.team" }}
{{ partial "preview_card_team.html" . }}
{{ end }}
And it’s working perfect.
But I want to add additional info about teams’ responsibilities. So let’s say I have cascade like this in my front matter:
teams:
- name: Team 1
responsibilities: ask them if something is wrong
- name: Team 2
responsibilities: ask them if you want new feature
How can I show related tools now? Old code doesn’t work and to be honest I have no idea how to tell Hugo to check .Title against “name” from cascade.
Thanks!