diff --git a/core/server/middleware/index.js b/core/server/middleware/index.js index 842660d1d1..5f38ce0d60 100644 --- a/core/server/middleware/index.js +++ b/core/server/middleware/index.js @@ -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, diff --git a/core/shared/robots.txt b/core/shared/robots.txt index 0120d9be2a..b9f1b17caa 100644 --- a/core/shared/robots.txt +++ b/core/shared/robots.txt @@ -1,3 +1,3 @@ User-agent: * -Sitemap: /sitemap.xml +Sitemap: {{blog-url}}/sitemap.xml Disallow: /ghost/