Adds better pattern for parsing post and page files.