From d42a3f74ec895f5b5921a2669b0daf55196d6964 Mon Sep 17 00:00:00 2001 From: hunicus <93150691+hunicus@users.noreply.github.com> Date: Sat, 26 Aug 2023 14:18:55 +0900 Subject: [PATCH] Add description to index html and seo service --- frontend/src/app/services/seo.service.ts | 6 ++++++ frontend/src/index.bisq.html | 18 +++++++++--------- frontend/src/index.liquid.html | 17 +++++++++-------- frontend/src/index.mempool.html | 17 +++++++++-------- 4 files changed, 33 insertions(+), 25 deletions(-) diff --git a/frontend/src/app/services/seo.service.ts b/frontend/src/app/services/seo.service.ts index 4fc25be52..37387e6bf 100644 --- a/frontend/src/app/services/seo.service.ts +++ b/frontend/src/app/services/seo.service.ts @@ -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'; diff --git a/frontend/src/index.bisq.html b/frontend/src/index.bisq.html index 6d3bcb130..614c06bd4 100644 --- a/frontend/src/index.bisq.html +++ b/frontend/src/index.bisq.html @@ -7,18 +7,18 @@ - + - - - - - - - - + + + + + + + + diff --git a/frontend/src/index.liquid.html b/frontend/src/index.liquid.html index ce57e5873..37e4241a0 100644 --- a/frontend/src/index.liquid.html +++ b/frontend/src/index.liquid.html @@ -7,18 +7,19 @@ - + - - - - - - - + + + + + + + + diff --git a/frontend/src/index.mempool.html b/frontend/src/index.mempool.html index ec026b63b..e0816f6b3 100644 --- a/frontend/src/index.mempool.html +++ b/frontend/src/index.mempool.html @@ -7,18 +7,19 @@ - + - - - - - - - + + + + + + + +