Skip to main content

page_title

page_title is a hook which sets a styled h1 element at the top of the page (inside of the page chrome).

As this cannot be a global option, you cannot set this option in the PmacsFrontend configuration; however, you may still use either the helper method or the content_for mechanisms.

Here is an example of setting the page_title with content_for:

# app/views/students/show.html.erb

<% content_for :page_title, @student.full_name %>

Note: Because this sets an h1 element, you may need to adjust your current headers to maintain semantic header ordering.