Fix index pages detection in live mode

This commit is contained in:
Stéphane Goetz
2015-07-19 23:17:57 +02:00
parent d921c412b5
commit f903b0060c
5 changed files with 14 additions and 14 deletions

View File

@ -96,7 +96,7 @@ class Template
foreach ($tree->getEntries() as $node) {
$url = $node->getUri();
if ($node instanceof Content) {
if ($node->getName() === '_index') {
if (in_array($node->getName(), ['index', '_index'])) {
continue;
}