diff --git a/lib/pico.php b/lib/pico.php index 7dd32863ec68e0488347eb1a367308c945991a85..8e9800c6d6ad251b35e9e11a946792b838e75b48 100644 --- a/lib/pico.php +++ b/lib/pico.php @@ -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);