mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-19 08:50:13 +01:00
fix(docs): og description
This commit is contained in:
parent
91aafdeb9b
commit
6ab0515962
2 changed files with 4 additions and 1 deletions
|
|
@ -63,7 +63,6 @@ export class NgxAdminLandingPageComponent implements OnDestroy, OnInit {
|
||||||
}),
|
}),
|
||||||
filter(item => item),
|
filter(item => item),
|
||||||
tap((item: any) => {
|
tap((item: any) => {
|
||||||
this.metaDataService.updateTitle(`Nebular - ${item.name}`);
|
|
||||||
this.metaDataService.updateDescription(item.description);
|
this.metaDataService.updateDescription(item.description);
|
||||||
}),
|
}),
|
||||||
publishReplay(),
|
publishReplay(),
|
||||||
|
|
|
||||||
|
|
@ -11,11 +11,15 @@ export class MetadataService {
|
||||||
|
|
||||||
updateTitle(title: string) {
|
updateTitle(title: string) {
|
||||||
this.title.setTitle(title);
|
this.title.setTitle(title);
|
||||||
|
this.meta.updateTag({ property: 'og:title', content: title });
|
||||||
}
|
}
|
||||||
|
|
||||||
updateDescription(desc: string) {
|
updateDescription(desc: string) {
|
||||||
this.meta.updateTag({ name: 'description', content: desc });
|
this.meta.updateTag({ name: 'description', content: desc });
|
||||||
|
this.meta.updateTag({ property: 'og:description', content: desc });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue