Gather all h1 titles into an array