Ignore files starting with an underscore

This commit is contained in:
acstll 2013-12-27 18:27:57 +01:00
parent f31ca848b6
commit da536894f4

View file

@ -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);