Skip to content

Commit

Permalink
made all options callable
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Meilick <b@bnomei.com>
  • Loading branch information
bnomei committed Aug 25, 2019
1 parent 2db49f3 commit 65bd503
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions classes/Robotstxt.php
Expand Up @@ -113,6 +113,10 @@ private function addGroups($groups = null): Robotstxt
*/
private function addSitemap($sitemap = null): Robotstxt
{
if (! $sitemap) {
return $this;
}

// @codeCoverageIgnoreStart
if (option('omz13.xmlsitemap.disable') === false) {
$this->txt[] = 'sitemap: ' . url('/sitemap.xml');
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -2,7 +2,7 @@
"name": "bnomei/kirby3-robots-txt",
"type": "kirby-plugin",
"description": "Manage the robots.txt from the Kirby config file",
"version": "1.4.5",
"version": "1.4.6",
"license": "MIT",
"authors": [
{
Expand Down

0 comments on commit 65bd503

Please sign in to comment.