Adjust post title and page title font sizes

Here is a code snippet to adjust the font size of titles on both posts and pages: