chore: remove noindex for robots
This commit is contained in:
parent
d2554b40ea
commit
7b2200ff5b
@ -156,12 +156,6 @@ export class DocViewerComponent implements OnDestroy {
|
||||
* Tell search engine crawlers whether to index this page
|
||||
*/
|
||||
private setNoIndex(val: boolean) {
|
||||
if (val) {
|
||||
|
||||
this.metaService.addTag({ name: 'robots', content: 'noindex' });
|
||||
} else {
|
||||
this.metaService.removeTag('name="robots"');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -31,12 +31,6 @@
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<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 -->
|
||||
<script>
|
||||
// Note this is a customised version of the GA tracking snippet
|
||||
|
Loading…
x
Reference in New Issue
Block a user