add sitemap statement to robots.txt

This commit is contained in:
Evan Prodromou 2010-04-12 14:32:01 -04:00
parent e363b724b9
commit 1c858e17ea

View File

@ -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 * Map URLs to actions
* *