How do you beat Svartáljǫfurr in God of War?

Quick answer: Roll to the side when he charges with his spear, keep away from his spear bolts before they explode, and keep Atreus shooting. Punish him after each charge.
Show walkthrough (quest spoilers)
Where it happens
The dark elf king Svartáljǫfurr attacks when you use the sand table lift in the Ringed Temple trench, on your way out of Alfheim. It happens after you have the Light and the blue door is open. It is a one-on-one fight with Atreus helping.
Dodge the charge
He flies around and charges at you to impale you with his spear. Roll out to the side as he comes in, then hit him while he recovers. Do not try to block the charge head on.
Watch the spear bolts
He fires energy bolts from his spear into the ground. They build up and then explode, and they hit hard. Move away from them as soon as you see them land.
Darkness and Atreus
He can fill the area with darkness, which makes him harder to see. Keep Atreus firing arrows the whole fight to stun him and add damage. Stay calm in the dark and wait for him to show himself before you attack.
After the fight
Once he dies, Atreus works the sand table to bring the lift up and you leave the temple. See the Light of Alfheim walkthrough for the way back to Midgard.
