mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-07 03:22:21 +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) {
|
if (err) {
|
||||||
return next(err);
|
return next(err);
|
||||||
}
|
}
|
||||||
|
buf = buf.toString().replace('{{blog-url}}', config.url.replace(/\/$/, ''));
|
||||||
content = {
|
content = {
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': type,
|
'Content-Type': type,
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
User-agent: *
|
User-agent: *
|
||||||
Sitemap: /sitemap.xml
|
Sitemap: {{blog-url}}/sitemap.xml
|
||||||
Disallow: /ghost/
|
Disallow: /ghost/
|
||||||
|
Loading…
Reference in New Issue
Block a user