$site->hasDocuments()

Checks if there are any documents (pdf, doc, xls, etc.) placed directly in /content

  • return (boolean)

Example

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

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