From 576e4074b04c6f2934b163af4dd560a9d6076cb8 Mon Sep 17 00:00:00 2001 From: Linkie Link Date: Fri, 19 Jan 2024 22:07:05 +0100 Subject: [PATCH] fix: added twitter og tags --- .../view-inscription/view-inscription.page.ts | 16 ++++ frontend/src/index.html | 93 ++++++++++++------- 2 files changed, 76 insertions(+), 33 deletions(-) diff --git a/frontend/src/app/view-inscription/view-inscription.page.ts b/frontend/src/app/view-inscription/view-inscription.page.ts index 02a7233f..2138c76e 100644 --- a/frontend/src/app/view-inscription/view-inscription.page.ts +++ b/frontend/src/app/view-inscription/view-inscription.page.ts @@ -132,6 +132,22 @@ export class ViewInscriptionPage implements OnInit { name: 'description', content: description, }); + this.meta.updateTag({ + property: 'twitter:url', + content: `https://asteroidprotocol.io/app/inscription/${transaction.hash}`, + }); + this.meta.updateTag({ + property: 'twitter:title', + content: `${name} Inscription #${id} on Asteroid Protocol`, + }); + this.meta.updateTag({ + property: 'twitter:image', + content: content_path, + }); + this.meta.updateTag({ + property: 'twitter:description', + content: description, + }); const resultHistory = await chain('query')({ inscription_history: [ diff --git a/frontend/src/index.html b/frontend/src/index.html index e23411f4..e4c6ca9b 100644 --- a/frontend/src/index.html +++ b/frontend/src/index.html @@ -1,46 +1,73 @@ + + + Asteroid Protocol | Inscribe anything on the Hub - - - Asteroid Protocol | Inscribe anything on the Hub + - + + + + - - - - + + + + + - - - + + + + - - - - + + + + - - - - - - + - - - - - - - - - + + + + - \ No newline at end of file + + + +