Skip to content

Commit 9ae34a3

Browse files
authored
Merge pull request #1416 from scroll-tech/native-asset-page-metadata
fix: metadata
2 parents ee93a72 + 87437c1 commit 9ae34a3

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

src/app/SCR-sSCR/page.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
import { promises as fs } from "fs"
22

3-
import { BNToAmount } from "@/utils"
3+
import { BNToAmount, genMeta } from "@/utils"
44

55
import Explaination from "./Explaination"
66
import Header from "./Header"
77

8+
export const generateMetadata = genMeta(() => ({
9+
titleSuffix: "SCR & sSCR",
10+
relativeURL: "/SCR-sSCR",
11+
description: "Governance token and its LRT",
12+
}))
13+
814
const ScrAndsSCRPage = async () => {
915
const circulatingSupplyStr = await fs.readFile(process.cwd() + "/public/tokenomics/circulatingSupply.txt", "utf8")
1016
const circulatingSupply = +circulatingSupplyStr

src/app/scrETH/page.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1+
import { genMeta } from "@/utils"
2+
13
import Explaination from "./Explaination"
24
import Header from "./Header"
35

4-
const ScrAndsSCRPage = () => {
6+
export const generateMetadata = genMeta(() => ({
7+
titleSuffix: "scrETH",
8+
relativeURL: "/scrETH",
9+
description: "Scroll's ecosystem native ETH LRT",
10+
}))
11+
12+
const ScrETHPage = () => {
513
return (
614
<>
715
<Header></Header>
@@ -10,4 +18,4 @@ const ScrAndsSCRPage = () => {
1018
)
1119
}
1220

13-
export default ScrAndsSCRPage
21+
export default ScrETHPage

0 commit comments

Comments
 (0)