adds layout to markdown pages