Skip to content

Commit

Permalink
If no listing_template is set, that just means it falls back to the d…
Browse files Browse the repository at this point in the history
…efault. We want to include that.
  • Loading branch information
bobdenotter authored Aug 1, 2016
1 parent 8240ba5 commit d321e61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SitemapExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit d321e61

Please sign in to comment.