You can access the current page object via this.page and it returns the object Cms\Classes\Page. This object can also be accessed in the PHP code of a page as $this->page.
this.page has the following properties.
Reference to the layout name used by this page, if defined. Not to be confused with this.layout.
{{ this.page.layout }}Converts the page file name and folder name to a CSS friendly identifier.
<body class="page-{{ this.page.id }}">If the page file was home/index.htm this would generate a class name of page-home-index.
The page title as defined by the configuration.
<h1>{{ this.page.title }}</h1>The page description as defined by the configuration.
<p>{{ this.page.description }}</p>An alternative title field, usually more descriptive for SEO purposes.
<title>{{ this.page.meta_title }}</title>An alternative description field, usually more descriptive for SEO purposes.
<meta name="description" content="{{ this.page.meta_description }}">Hidden pages are accessible only by logged-in back-end users.
{% if this.page.hidden %}
<p>Note to other admins: We are currently working on this page.</p>
{% endif %}Page file name in the theme with extension.
Page file name in the theme without the extension.