$site->hasFiles()

Checks if there are any files placed directly in /content

  • return (boolean)

Example

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

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