Having trouble getting this to work. I am trying to show a list of items not listed in 2 templates, my statement works, but is only reading the first ‘teacher’ statement.
{{ if not (in .template "teacher") | or (in .template "student") }}
I have also tried:
{{ if or (in .template "teacher") (in .template "student") }}
This reads both conditions but excludes everything but these two templates, so works but in the opposite way. I tried adding in a (not in .template "teacher")
but get a hugo build error.