0
Fork 0
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:
Naz 2021-08-10 13:45:53 +04:00
parent 5967c080dc
commit 01f8737d39
2 changed files with 3 additions and 1 deletions

View file

@ -2,3 +2,4 @@ User-agent: *
Sitemap: {{blog-url}}/sitemap.xml
Disallow: /ghost/
Disallow: /p/
Disallow: /email/

View file

@ -300,7 +300,8 @@ describe('Default Frontend routing', function () {
res.text.should.equal(
'User-agent: *\n' +
'Sitemap: http://127.0.0.1:2369/sitemap.xml\nDisallow: /ghost/\n' +
'Disallow: /p/\n'
'Disallow: /p/\n' +
'Disallow: /email/\n'
);
});