Add open graph link titles

This commit is contained in:
Mononaut committed 2022-07-27 01:26:14 +00:00
1 parent a67c0b166c
commit d1ad9efe64
2 files changed
+15 -2

No files matched your search

+2 -2
View File
@@ -20,13 +20,13 @@ export class SeoService {
setTitle(newTitle: string): void {
this.titleService.setTitle(newTitle + ' - ' + this.getTitle());
this.metaService.updateTag({ property: 'og:title', content: newTitle});
this.metaService.updateTag({ property: 'twitter:description', content: newTitle});
this.metaService.updateTag({ property: 'twitter:title', content: newTitle});
}
resetTitle(): void {
this.titleService.setTitle(this.getTitle());
this.metaService.updateTag({ property: 'og:title', content: this.getTitle()});
this.metaService.updateTag({ property: 'twitter:description', content: this.getTitle()});
this.metaService.updateTag({ property: 'twitter:title', content: this.getTitle()});
}
setEnterpriseTitle(title: string) {