$content->name()

Returns the name of the content file without the extension. This is being used to determine the template for the page

  • return (string)

Example

<?php echo $page->content()->name()) ?>