refactor css and add permalinks to posts