For 10 points, name this husband of Parvati who accidentally beheaded his son Ganesh, the Hindu destroyer deity.
The city of Hampi contains a temple with 1008 structures dedicated to this deity, while other temples dedicated to him include one at Trimbakeshwar, which commemorates the formation of the Godavari River, and the Mallikarjuna Temple at Srishailam. A festival is celebrated to mark the devotion of the consort who stayed up all night to care for this deity after he swallowed poison that came from the churning of the ocean. This deity is depicted performing the Tandava dance in his Nataraja form, and temples dedicated to him feature phallic structures called lingams. For 10 points, name this husband of Parvati who accidentally beheaded his son Ganesh, the Hindu destroyer deity.
The city of Hampi contains a temple with 1008 structures dedicated to this deity, while other temples dedicated to him include one at Trimbakeshwar, which commemorates the formation of the Godavari River, and the Mallikarjuna Temple at Srishailam.
{Shiva} [or {Shankara}; do not accept “{Rudra}”]