Add support for posts without single pages; improve linking