Add description to index html and seo service

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

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';