From d321e61e04d2fe2e825352f1378b4ec12109b74d Mon Sep 17 00:00:00 2001 From: Bob den Otter Date: Mon, 1 Aug 2016 12:19:10 +0200 Subject: [PATCH] If no listing_template is set, that just means it falls back to the default. We want to include that. --- src/SitemapExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SitemapExtension.php b/src/SitemapExtension.php index b4c061f..fbf3dc6 100644 --- a/src/SitemapExtension.php +++ b/src/SitemapExtension.php @@ -132,7 +132,7 @@ private function getLinks() if (!$isIgnored && !$contentType['viewless'] && $searchable) { $baseDepth = 0; - if (isset($contentType['listing_template']) && !$config['ignore_listing']) { + if (!$config['ignore_listing']) { $baseDepth = 1; $links[] = [ 'link' => $rootPath . $contentType['slug'],