Get the nested section name in archetypes

I am using this code to get the nested section’s name as the category name in my archetypes files since {{ title .Section }} only works for the root sections. Does anyone have an alternative way to do it that is, maybe, cleaner and shorter?