Skip to content

Commit ddfaa5d

Browse files
Merge pull request #49 from caplod/fix-seo-sitemap
fix indexing for seo sitemap
2 parents b344f57 + ea960c4 commit ddfaa5d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/models.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ public function parents(): Pages {
3232
$parents = parent::parents();
3333
return $parents->filter('slug', '!=', 'modules');
3434
}
35+
public function metaDefaults() {
36+
return ['robotsIndex' => false];
37+
}
3538
}
3639

3740
class ModulesPage extends Page {
@@ -41,4 +44,7 @@ public function url($options = null): string {
4144
public function render(array $data = [], $contentType = 'html'): string {
4245
go($this->parentUrl());
4346
}
47+
public function metaDefaults() {
48+
return ['robotsIndex' => false];
49+
}
4450
}

0 commit comments

Comments
 (0)