add sitemap statement to robots.txt
This commit is contained in:
parent
e363b724b9
commit
1c858e17ea
@ -76,6 +76,23 @@ class SitemapPlugin extends Plugin
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Add sitemap-related information at the end of robots.txt
|
||||
*
|
||||
* @param Action $action Action being run
|
||||
*
|
||||
* @return boolean hook value.
|
||||
*/
|
||||
|
||||
function onEndRobotsTxt($action)
|
||||
{
|
||||
$url = common_local_url('sitemapindex');
|
||||
|
||||
print "\nSitemap: $url\n";
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Map URLs to actions
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user