Ignore files starting with an underscore
This commit is contained in:
parent
f31ca848b6
commit
da536894f4
1 changed files with 7 additions and 0 deletions
|
@ -232,6 +232,13 @@ class Pico {
|
|||
unset($pages[$key]);
|
||||
continue;
|
||||
}
|
||||
|
||||
// Ignore files starting with an underscore
|
||||
if (substr(basename($page), 0, 1) == '_') {
|
||||
unset($pages[$key]);
|
||||
continue;
|
||||
}
|
||||
|
||||
// Get title and format $page
|
||||
$page_content = file_get_contents($page);
|
||||
$page_meta = $this->read_file_meta($page_content);
|
||||
|
|
Loading…
Add table
Reference in a new issue