Commit 2dcacab1 authored by gbyte.co's avatar gbyte.co

Issue #2784079 by liam-morland: Support RobotsTxt module

parent d112db59
......@@ -175,3 +175,13 @@ function simple_sitemap_delete_bundle_config($entity_type_id, $bundle) {
drupal_set_message(t($message, ['@url' => $GLOBALS['base_url'] . '/admin/config/search/simplesitemap']));
}
}
/**
* Implements hook_robotstxt().
*/
function simple_sitemap_robotstxt() {
return [
'# XML sitemap',
'Sitemap: ' . $GLOBALS['base_url'] . '/sitemap.xml',
];
}
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