From 358301020fa1ad389137bf7a6c6a4b2ace664da0 Mon Sep 17 00:00:00 2001 From: wiz Date: Wed, 5 Jan 2022 15:58:15 +0900 Subject: [PATCH] Tweak html description meta tags / SEO service page titles --- .../bisq-main-dashboard/bisq-main-dashboard.component.ts | 2 +- frontend/src/app/services/seo.service.ts | 6 +++++- frontend/src/index.bisq.html | 6 +++--- frontend/src/index.liquid.html | 6 +++--- frontend/src/index.mempool.html | 6 +++--- 5 files changed, 15 insertions(+), 11 deletions(-) diff --git a/frontend/src/app/bisq/bisq-main-dashboard/bisq-main-dashboard.component.ts b/frontend/src/app/bisq/bisq-main-dashboard/bisq-main-dashboard.component.ts index a59ad88a9..a45bb138e 100644 --- a/frontend/src/app/bisq/bisq-main-dashboard/bisq-main-dashboard.component.ts +++ b/frontend/src/app/bisq/bisq-main-dashboard/bisq-main-dashboard.component.ts @@ -33,7 +33,7 @@ export class BisqMainDashboardComponent implements OnInit { ) { } ngOnInit(): void { - this.seoService.setTitle(`Markets`); + this.seoService.resetTitle(); this.websocketService.want(['blocks']); this.usdPrice$ = this.stateService.conversions$.asObservable().pipe( diff --git a/frontend/src/app/services/seo.service.ts b/frontend/src/app/services/seo.service.ts index 71a57d871..fb47b0dc8 100644 --- a/frontend/src/app/services/seo.service.ts +++ b/frontend/src/app/services/seo.service.ts @@ -27,10 +27,14 @@ export class SeoService { } getTitle(): string { + if (this.network === 'testnet') + return 'mempool - Bitcoin Testnet'; + if (this.network === 'signet') + return 'mempool - Bitcoin Signet'; if (this.network === 'liquid') return 'mempool - Liquid Network'; if (this.network === 'liquidtestnet') - return 'mempool - Liquid Network Testnet'; + return 'mempool - Liquid Testnet'; if (this.network === 'bisq') return 'mempool - Bisq Markets'; return 'mempool - ' + (this.network ? this.ucfirst(this.network) : 'Bitcoin') + ' Explorer'; diff --git a/frontend/src/index.bisq.html b/frontend/src/index.bisq.html index 82c34c49d..592b43aaf 100644 --- a/frontend/src/index.bisq.html +++ b/frontend/src/index.bisq.html @@ -5,7 +5,7 @@ mempool - Bisq Markets - + @@ -13,8 +13,8 @@ - - + + diff --git a/frontend/src/index.liquid.html b/frontend/src/index.liquid.html index f618ae7a8..97f7ffb96 100644 --- a/frontend/src/index.liquid.html +++ b/frontend/src/index.liquid.html @@ -5,7 +5,7 @@ mempool - Liquid Network - + @@ -13,8 +13,8 @@ - - + + diff --git a/frontend/src/index.mempool.html b/frontend/src/index.mempool.html index 4f9cd250e..bdb5061a2 100644 --- a/frontend/src/index.mempool.html +++ b/frontend/src/index.mempool.html @@ -5,7 +5,7 @@ mempool - Bitcoin Explorer - + @@ -13,8 +13,8 @@ - - + +