mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-05 09:50:34 +03:00
Merge pull request #4639 from cobbspur/robots
Adds complete url for Sitemap in robots.txt
This commit is contained in:
commit
6372688d90
@ -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,
|
||||
|
@ -1,3 +1,3 @@
|
||||
User-agent: *
|
||||
Sitemap: /sitemap.xml
|
||||
Sitemap: {{blog-url}}/sitemap.xml
|
||||
Disallow: /ghost/
|
||||
|
Loading…
Reference in New Issue
Block a user