Merge pull request #2200 from overleaf/ho-add-noindex-option

adds settings.robotsNoindex setting to stop robots indexing site

GitOrigin-RevId: 0c2c3aee215dd3ef1cca8cde4e0693a4bd39c6ef
This commit is contained in:
Eric Mc Sween 2019-10-15 09:10:35 -04:00 committed by sharelatex
parent 0e6b455ab0
commit 2011189dc4
2 changed files with 6 additions and 0 deletions

View file

@ -96,6 +96,11 @@ meta(name="twitter:card", content=metadata && metadata.twitterCardType ? metadat
if metadata && metadata.viewport
meta(name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes")
//- Noindex
if settings.robotsNoindex
meta(name="robots" content="noindex")
//- Icons
link(rel="icon", href="/" + settings.brandPrefix + "favicon.ico")
link(rel="icon", sizes="192x192", href="/" + settings.brandPrefix + "touch-icon-192x192.png")

View file

@ -201,6 +201,7 @@ module.exports = settings =
# Same, but with http auth credentials.
httpAuthSiteUrl: "http://#{httpAuthUser}:#{httpAuthPass}@#{siteUrl}"
robotsNoindex: (process.env['ROBOTS_NOINDEX'] == "true") or false
maxEntitiesPerProject: 2000