$site->archives()
Returns a $files collection with all archive files (zip, gzip, tar) placed directly in /content
-
return ($files)
Example
<h2>Downloads</h2>
<ul>
<?php foreach($site->archives() as $archive): ?>
<li>
<a href="<?= $archive->url() ?>">
<?= $archive->filename() ?>
(<?= $archive->niceSize() ?>)
</a>
</li>
<?php endforeach ?>
</ul>