Fixes template section breaking for entry.

This breaks the next and previous links, as they can not be anchored correctly.