Merge pull request #1143 from sharelatex/robots-noindex

Add noindex, nofollow to editor pages (read/write and read only)

GitOrigin-RevId: b1bcd3c7203a0027d86aced3ea8371b077c4ac75
This commit is contained in:
Ersun Warncke
2018-11-09 19:30:16 -04:00
committed by sharelatex
parent 59a849d46e
commit efaa77dbd7
2 changed files with 4 additions and 0 deletions

View File

@@ -44,6 +44,9 @@
//- Misc
meta(itemprop="name", content=settings.appName + ", the Online LaTeX Editor")
-if (metadata && metadata.robotsNoindexNofollow)
meta(name="robots" content="noindex, nofollow")
//- Twitter
meta(name="twitter:card", content=metadata && metadata.twitterCardType ? metadata.twitterCardType : 'summary')
-if (settings.social && settings.social.twitter && settings.social.twitter.handle)