Display the name of the current page.
This will grab the page title, and display it in the hero
// method 1
$("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>");
}
});
<!--method 2-->
<!--or within your .master file, you can also...-->
<h1><%= If(New PublicPage().CurrentPage Is Nothing, "", New PublicPage().CurrentPage.Name) %></h1>