add document and link feature in the rendered posts