Commit f3f652e4 authored by Evan Prodromou's avatar Evan Prodromou

add sitemap statement to robots.txt

parent 09e5046d
......@@ -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
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment