Make latest independent of publications JSON

Perhaps this could be checked when the path is to document, so that the
page can display the latest version if you’re not looking at it.