$pages
Returns the current application pages.
Table of Contents
Description
This variable is an instance of the Pages
class.
Example
<?php if ($pages->count): ?>
<?php foreach ($pages as $page): ?>
<article id="page:<?= eat($page->id); ?>">
<h3>
<a href="<?= eat($page->link ?? $page->url); ?>">
<?= $page->title; ?>
</a>
</h3>
<p>
<?= $page->description; ?>
</p>
</article>
<?php endforeach; ?>
<?php else: ?>
<p role="status">
<?php if ($site->has('part')): ?>
<?= i('No more %s to show.', 'pages'); ?>
<?php else: ?>
<?= i('No %s yet.', 'pages'); ?>
<?php endif; ?>
</p>
<?php endif; ?>