Merge pull request #4639 from cobbspur/robots

Adds complete url for Sitemap in robots.txt
This commit is contained in:
Hannah Wolfe 2014-12-13 20:58:53 +00:00
commit 6372688d90
2 changed files with 2 additions and 2 deletions

View File

@ -215,7 +215,7 @@ function serveSharedFile(file, type, maxAge) {
if (err) {
return next(err);
}
buf = buf.toString().replace('{{blog-url}}', config.url.replace(/\/$/, ''));
content = {
headers: {
'Content-Type': type,

View File

@ -1,3 +1,3 @@
User-agent: *
Sitemap: /sitemap.xml
Sitemap: {{blog-url}}/sitemap.xml
Disallow: /ghost/