I must be missing something simple but I didn’t see it looking through docs and here.
I creating schema.org json+ld for my site and want to use different microdata depending on the page location in a nested section, but I can’t figure out how to elegantly test this.
How can I test when job.md is in the section employment?
If it were a top level section check a simple {{ if eq .Section "about" }} would work for instance. Is there a similar approach for checking if the page is under the employment nested section?
That makes sense. I guess I was thinking there might be something similar to .Section to avoid any fragility in the title change of the employment list page.