mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 05:37:34 +03:00
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:
parent
994dee16d4
commit
9a0dc0be58
@ -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