chore: remove noindex for robots

This commit is contained in:
Zhicheng Wang 2018-09-24 10:48:53 +08:00
parent d2554b40ea
commit 7b2200ff5b
2 changed files with 0 additions and 12 deletions

View File

@ -156,12 +156,6 @@ export class DocViewerComponent implements OnDestroy {
* Tell search engine crawlers whether to index this page * Tell search engine crawlers whether to index this page
*/ */
private setNoIndex(val: boolean) { private setNoIndex(val: boolean) {
if (val) {
this.metaService.addTag({ name: 'robots', content: 'noindex' });
} else {
this.metaService.removeTag('name="robots"');
}
} }
/** /**

View File

@ -31,12 +31,6 @@
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="translucent"> <meta name="apple-mobile-web-app-status-bar-style" content="translucent">
<script>
// Dynamically, pre-emptively, add `noindex`, which will be removed when the doc is ready and valid
tag = document.createElement('meta'); tag.name = 'robots'; tag.content = 'noindex';
document.head.appendChild(tag);
</script>
<!-- Google Analytics --> <!-- Google Analytics -->
<script> <script>
// Note this is a customised version of the GA tracking snippet // Note this is a customised version of the GA tracking snippet