Skip to content

Commit b9f74e7

Browse files
committed
fix tx page seo
1 parent d7462bd commit b9f74e7

File tree

1 file changed

+28
-15
lines changed

1 file changed

+28
-15
lines changed

pages/tx/[hash].vue

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ if (!rawTx.value) {
1919
}
2020
2121
useHead({
22-
title: `Transaction ${tx.value?.hash.slice(tx.value?.hash.length - 4, tx.value?.hash.length)} - Celestia Explorer`,
22+
title: `Transaction ${tx.value?.hash.toUpperCase().slice(tx.value?.hash.length - 4, tx.value?.hash.length)} ••• ${tx.value?.hash
23+
.toUpperCase()
24+
.slice(0, 4)} - Celestia Explorer`,
2325
link: [
2426
{
2527
rel: "canonical",
@@ -29,21 +31,27 @@ useHead({
2931
meta: [
3032
{
3133
name: "description",
32-
content: `Celestia Transaction ${tx.value?.hash.slice(
33-
tx.value?.hash.length - 4,
34-
tx.value?.hash.length,
35-
)}. The timestamp, hash, events, messages, metadata, gas used.`,
34+
content: `Celestia Transaction ${tx.value?.hash
35+
.toUpperCase()
36+
.slice(tx.value?.hash.length - 4, tx.value?.hash.length)} ••• ${tx.value?.hash
37+
.toUpperCase()
38+
.slice(0, 4)}. The timestamp, hash, events, messages, metadata, gas used.`,
3639
},
3740
{
3841
property: "og:title",
39-
content: `Transaction ${tx.value?.hash.slice(tx.value?.hash.length - 4, tx.value?.hash.length)} - Celestia Explorer`,
42+
content: `Transaction ${tx.value?.hash
43+
.toUpperCase()
44+
.slice(tx.value?.hash.length - 4, tx.value?.hash.length)} ••• ${tx.value?.hash
45+
.toUpperCase()
46+
.slice(0, 4)} - Celestia Explorer`,
4047
},
4148
{
4249
property: "og:description",
43-
content: `Celestia Transaction ${tx.value?.hash.slice(
44-
tx.value?.hash.length - 4,
45-
tx.value?.hash.length,
46-
)}. The timestamp, hash, events, messages, metadata, gas used.`,
50+
content: `Celestia Transaction ${tx.value?.hash
51+
.toUpperCase()
52+
.slice(tx.value?.hash.length - 4, tx.value?.hash.length)} ••• ${tx.value?.hash
53+
.toUpperCase()
54+
.slice(0, 4)}. The timestamp, hash, events, messages, metadata, gas used.`,
4755
},
4856
{
4957
property: "og:url",
@@ -55,14 +63,19 @@ useHead({
5563
},
5664
{
5765
name: "twitter:title",
58-
content: `Transaction ${tx.value?.hash.slice(tx.value?.hash.length - 4, tx.value?.hash.length)} - Celestia Explorer`,
66+
content: `Transaction ${tx.value?.hash
67+
.toUpperCase()
68+
.slice(tx.value?.hash.length - 4, tx.value?.hash.length)} ••• ${tx.value?.hash
69+
.toUpperCase()
70+
.slice(0, 4)} - Celestia Explorer`,
5971
},
6072
{
6173
name: "twitter:description",
62-
content: `Celestia Transaction ${tx.value?.hash.slice(
63-
tx.value?.hash.length - 4,
64-
tx.value?.hash.length,
65-
)}. The timestamp, hash, events, messages, metadata, gas used.`,
74+
content: `Celestia Transaction ${tx.value?.hash
75+
.toUpperCase()
76+
.slice(tx.value?.hash.length - 4, tx.value?.hash.length)} ••• ${tx.value?.hash
77+
.toUpperCase()
78+
.slice(0, 4)}. The timestamp, hash, events, messages, metadata, gas used.`,
6679
},
6780
{
6881
name: "twitter:card",

0 commit comments

Comments
 (0)