Display the name of the current page.
This will grab the page title, and display it in the hero
<!--method 1-->
<!--within your .master file, you can also...-->
<h1><%= If(New PublicPage().CurrentPage Is Nothing, "", New PublicPage().CurrentPage.Name) %></h1>
<!--method 2-->
<!--within your .liquid template-->
<h1 class="page-title">{% if SitePage %} {{ SitePage.Name }} {% endif %}</h1>
// method 3
// via JS
$("body:not(.home) section.hero").each(function () {
if ($("body.blog").length) {
var heroPageName = "Blog";
$(this).append("<h1 class='page-title'> " + heroPageName + "</h1>");
} else {
var heroPageName = $("head title").text();
$(this).append("<h1 class='page-title'> " + heroPageName + "</h1>");
}
});