To hang one's hat can mean a place you call home
or
To hang one's hat on means a skill or trait or whatever that you use or rely on
For example, learning a new language is a skill you can hang your hat on. Meaning, if you know another language, you can use that language to your benefit.