mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-17 16:00:14 +01:00
feat: update title description and keywords (#5689)
This commit is contained in:
parent
994522c2c0
commit
a7d1716fc6
9 changed files with 71 additions and 36 deletions
|
|
@ -63,20 +63,9 @@ export class NgxAdminLandingPageComponent implements OnDestroy, OnInit {
|
|||
}),
|
||||
filter(item => item),
|
||||
tap((item: any) => {
|
||||
switch (item.name) {
|
||||
case 'Installation Guidelines':
|
||||
this.metaDataService.updateTitle(`Ngx-admin - Guideline to install.`);
|
||||
break;
|
||||
case 'Server deployment':
|
||||
case 'Theme System':
|
||||
case 'Change Theme':
|
||||
case 'Backend integration':
|
||||
this.metaDataService.updateTitle(`Ngx-admin - ${item.name}`);
|
||||
break;
|
||||
default:
|
||||
this.metaDataService.updateTitle(item.name);
|
||||
}
|
||||
this.metaDataService.updateTitle(item.title);
|
||||
this.metaDataService.updateDescription(item.description);
|
||||
this.metaDataService.updateKeywords(item.keywords);
|
||||
}),
|
||||
publishReplay(),
|
||||
refCount(),
|
||||
|
|
|
|||
|
|
@ -1,9 +1,19 @@
|
|||
import { Component } from '@angular/core';
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { MetadataService } from '../../../../../../src/app/@core/utils/metadata.service';
|
||||
|
||||
@Component({
|
||||
selector: 'ngx-material-admin-info',
|
||||
templateUrl: './material-info.component.html',
|
||||
styleUrls: ['./../main-info-section.component.scss'],
|
||||
})
|
||||
export class MaterialAdminInfoComponent {
|
||||
export class MaterialAdminInfoComponent implements OnInit {
|
||||
|
||||
constructor(private metaDataService: MetadataService) {}
|
||||
|
||||
ngOnInit(): void {
|
||||
this.metaDataService.updateTitle('Ngx-admin material dashboard template based on Angular 9+ and Bootstrap 4+');
|
||||
this.metaDataService.updateDescription('Ngx-admin material works perfectly with Angular Material and Nebular.' +
|
||||
' Over 40+ Angular Components and 60+ Usage Examples.Take the best from both!');
|
||||
this.metaDataService.updateKeywords('Ngx-admin material theme, ngx-admin material dashboard, ngx-admin material');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue