Add description to index html and seo service

This commit is contained in:
hunicus committed 2023-08-26 14:18:55 +09:00
1 parent b180fe694f
commit d42a3f74ec
4 files changed
+33 -25

No files matched your search

+6
View File
@@ -52,6 +52,12 @@ export class SeoService {
this.resetTitle();
}
setDescription(newDescription: string): void {
this.metaService.updateTag({ name: 'description', content: newDescription});
this.metaService.updateTag({ name: 'twitter:description', content: newDescription});
this.metaService.updateTag({ property: 'og:description', content: newDescription});
}
getTitle(): string {
if (this.network === 'testnet')
return this.baseTitle + ' - Bitcoin Testnet';