$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

<?= $page->content()->name()) ?>

Is something missing or incorrect? Edit this page on Github…