We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 1c858e17 authored by Evan Prodromou's avatar Evan Prodromou

add sitemap statement to robots.txt

parent e363b724
......@@ -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