Get page title for rendering in layout.phtml of custom theme

Hello,

I have a relatively, I think, simple task. I need to figure out a way to hardcode the page title (normally render from a Page Title block) into my layout.phtml.

Ideally, I’m just missing something here and the output might be some method I just don’t know about. Maybe something similar to this?
<h1><?php echo $this->methodToRenderTitle; ?></h1>

I’ve tried parsing documentation and fumbling through the controllers that render the block with no luck.

It’s a little trickier to put it in layout.phtml because that’s used for all pages, including things like items and browse pages and so on that aren’t “site pages” and don’t have titles in the same way. The more typical solution would probably be to edit the view that’s used just for site pages rather than the layout.

Within the “omeka/site/page/show.phtml” view, the title is just $page->title(), so printing it would look like <?php echo $this->escapeHtml($page->title()); ?>