Page Metadata

For each page, Jigsaw provides you with certain metadata values through get functions accessed on the $page object:

$page->getPath() returns the path to the current page, relative to the site root

$page->getUrl() returns the full URL to the item, if baseUrl was defined in config.php

$page->getFilename() returns the filename of the page, without extension (e.g. my-first-page)

$page->getExtension() returns the file extension (e.g. md)