Adds complete url for Sitemap in robots.txt

closes #4589

- Adds {{blog-url}} to robots.txt
- Replaces {{blog-url}} with blog.url from config
This commit is contained in:
cobbspur 2014-12-13 11:47:35 +00:00
parent 994dee16d4
commit 9a0dc0be58
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/