mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-18 02:21:47 -05:00
Merge pull request #4639 from cobbspur/robots
Adds complete url for Sitemap in robots.txt
This commit is contained in:
commit
6372688d90
2 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue