[solved] Embedding an if in a range

Changing .Type by $.Type fixed it.

Similar to https://discuss.gohugo.io/t/solved-help-using-range/5155/2