fix: og tags on donate page
This commit is contained in:
parent
92e40830e5
commit
0063bf424d
3 changed files with 9 additions and 2 deletions
BIN
src/assets/money.jpg
Normal file
BIN
src/assets/money.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 103 KiB |
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
import DefaultLayout from '~/layouts/DefaultLayout/DefaultLayout.astro'
|
import DefaultLayout from '~/layouts/DefaultLayout/DefaultLayout.astro'
|
||||||
import { umamiLogThisVisit } from '~/backend/service/umami'
|
import { umamiLogThisVisit } from '~/backend/service/umami'
|
||||||
|
import moneyImg from '~/assets/money.jpg'
|
||||||
|
|
||||||
import { PageDonate as PageDonateSolid, PaymentMethods } from './PageDonate'
|
import { PageDonate as PageDonateSolid, PaymentMethods } from './PageDonate'
|
||||||
import { fetchDonatePageData } from './data'
|
import { fetchDonatePageData } from './data'
|
||||||
|
@ -10,7 +11,13 @@ umamiLogThisVisit(Astro.request, '/donate')
|
||||||
const data = await fetchDonatePageData(Astro.request)
|
const data = await fetchDonatePageData(Astro.request)
|
||||||
---
|
---
|
||||||
|
|
||||||
<DefaultLayout>
|
<DefaultLayout
|
||||||
|
og={{
|
||||||
|
title: 'teidesu > donate.txt',
|
||||||
|
description: 'i would be extremely pleased if you sent me some money ❤️',
|
||||||
|
image: moneyImg.src,
|
||||||
|
}}
|
||||||
|
>
|
||||||
<PageDonateSolid {data}>
|
<PageDonateSolid {data}>
|
||||||
<PaymentMethods {data} slot="methods" client:idle />
|
<PaymentMethods {data} slot="methods" client:idle />
|
||||||
</PageDonateSolid>
|
</PageDonateSolid>
|
||||||
|
|
|
@ -121,7 +121,7 @@ function convert(from: string, amount: number, period: 'hour' | 'month' | 'year'
|
||||||
<td>🇷🇺 yandex</td>
|
<td>🇷🇺 yandex</td>
|
||||||
<td class="nowrap">10-2023</td>
|
<td class="nowrap">10-2023</td>
|
||||||
<td class="nowrap"></td>
|
<td class="nowrap"></td>
|
||||||
<td class="nowrap">{convert('RUB', 250_000, 'month')}</td>
|
<td class="nowrap">{convert('RUB', 290_000, 'month')}</td>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
Loading…
Reference in a new issue