The theme layout lookup rules are very confusing to me. Why is this an issue? I have:
type: team-stats
in my content/nba/team-stats/warriors.md file, and the single.html is under layouts/team-stats. According to the lookup rules, shouldn’t the warriors page be the only one using this template?
Put the file under layouts/_default/team-stats.html and call the frontmatter layout: team-stats. I am pretty sure you mix up something if you expect the setup above to work.
Do you mean that other pages are also using this template?
According to the lookup rules, this template will apply to anything with single pages of type team-stats, so if you have content/team-stats/foo.md that will also use this template.
Or do you mean that nba/team-stats/warriors.md is not using this template file when it should?
If this is the case, then something more specific is being used instead, because it should work as described. Unless we can see the rest of your code, we can’t say what that is.
error calling partial: partial "symbols/nba/_%!s(<nil>).svg" not found
which was explained that any pages calling this template (there is only 1, warriors.md) need to have nickname applied in their Front Matter. They all do, like this:
---
title: Golden State Warriors
nickname: warriors
type: team-stats
---