Fix page title discovery

This fixes page `<title>` extraction from H1 or H2 (in the cases where `title` does not exist in page's frontmatter).

It closes #102.