Update the page title based on headings.