mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Added /email/
route to robots.txt
closes https://github.com/TryGhost/Team/issues/952 - The `/email/` route will be a home for email only posts. We are adding the route preemptively to have the crowlers update their caches before the feature sees the light of The Internet
This commit is contained in:
parent
5967c080dc
commit
01f8737d39
2 changed files with 3 additions and 1 deletions
|
@ -2,3 +2,4 @@ User-agent: *
|
||||||
Sitemap: {{blog-url}}/sitemap.xml
|
Sitemap: {{blog-url}}/sitemap.xml
|
||||||
Disallow: /ghost/
|
Disallow: /ghost/
|
||||||
Disallow: /p/
|
Disallow: /p/
|
||||||
|
Disallow: /email/
|
||||||
|
|
|
@ -300,7 +300,8 @@ describe('Default Frontend routing', function () {
|
||||||
res.text.should.equal(
|
res.text.should.equal(
|
||||||
'User-agent: *\n' +
|
'User-agent: *\n' +
|
||||||
'Sitemap: http://127.0.0.1:2369/sitemap.xml\nDisallow: /ghost/\n' +
|
'Sitemap: http://127.0.0.1:2369/sitemap.xml\nDisallow: /ghost/\n' +
|
||||||
'Disallow: /p/\n'
|
'Disallow: /p/\n' +
|
||||||
|
'Disallow: /email/\n'
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue