mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
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:
parent
0e6b455ab0
commit
2011189dc4
2 changed files with 6 additions and 0 deletions
|
@ -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")
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue