add permalinks to pubs. add layout