$site->hasArchives()

Checks if there are any archive files (zip, gzip, tar) placed directly in /content

  • return (boolean)

Example

<?php if($site->hasArchives()): ?>
The /content folder contains archive files.
<?php endif ?>


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