Update links.
If ther eis no body content, don't display a self-closed div.