fix(docs): og description

This commit is contained in:
Alex 2020-04-30 13:55:24 +03:00
parent 91aafdeb9b
commit 6ab0515962
2 changed files with 4 additions and 1 deletions

View file

@ -63,7 +63,6 @@ export class NgxAdminLandingPageComponent implements OnDestroy, OnInit {
}),
filter(item => item),
tap((item: any) => {
this.metaDataService.updateTitle(`Nebular - ${item.name}`);
this.metaDataService.updateDescription(item.description);
}),
publishReplay(),

View file

@ -11,11 +11,15 @@ export class MetadataService {
updateTitle(title: string) {
this.title.setTitle(title);
this.meta.updateTag({ property: 'og:title', content: title });
}
updateDescription(desc: string) {
this.meta.updateTag({ name: 'description', content: desc });
this.meta.updateTag({ property: 'og:description', content: desc });
}
}