fix: add a proper 1200x630 social preview card
Some checks are pending
Deploy to GitHub Pages / deploy (push) Waiting to run
Some checks are pending
Deploy to GitHub Pages / deploy (push) Waiting to run
This commit is contained in:
parent
11171b37da
commit
c352986e70
5 changed files with 11 additions and 5 deletions
10
index.html
10
index.html
|
|
@ -62,16 +62,22 @@
|
|||
|
||||
<!-- Open Graph -->
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:site_name" content="SkateSpots">
|
||||
<meta property="og:title" content="SkateSpots - Decentralized Skate Map & Community">
|
||||
<meta property="og:description" content="Discover skate spots, find coaches, join events, and connect with the skateboarding community on Nostr.">
|
||||
<meta property="og:image" content="https://skate-spots.org/images/icon-1024.png">
|
||||
<meta property="og:image" content="https://skate-spots.org/images/og-card.png">
|
||||
<meta property="og:image:type" content="image/png">
|
||||
<meta property="og:image:width" content="1200">
|
||||
<meta property="og:image:height" content="630">
|
||||
<meta property="og:image:alt" content="SkateSpots — decentralized skate map, crews, events and gear">
|
||||
<meta property="og:url" content="https://skate-spots.org">
|
||||
|
||||
<!-- Twitter Card -->
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content="SkateSpots - Decentralized Skate Map">
|
||||
<meta name="twitter:description" content="Discover skate spots, find coaches, join events on Nostr.">
|
||||
<meta name="twitter:image" content="https://skate-spots.org/images/icon-1024.png">
|
||||
<meta name="twitter:image" content="https://skate-spots.org/images/og-card.png">
|
||||
<meta name="twitter:image:alt" content="SkateSpots — decentralized skate map, crews, events and gear">
|
||||
|
||||
<!-- Leaflet CSS is self-hosted (imported in main.tsx) — no unpkg/CDN. -->
|
||||
<!-- Warm up the connections used on almost every visit: our relay + media. -->
|
||||
|
|
|
|||
BIN
public/images/og-card.png
Normal file
BIN
public/images/og-card.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 779 KiB |
|
|
@ -16,7 +16,7 @@ export default function DonatePage() {
|
|||
description: t('seoUi.donateDesc'),
|
||||
ogTitle: 'Support SkateSpots',
|
||||
ogDescription: 'Keep the map free, ad-free and open-source.',
|
||||
ogImage: 'https://skate-spots.org/images/icon-1024.png',
|
||||
ogImage: 'https://skate-spots.org/images/og-card.png',
|
||||
});
|
||||
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ export default function EventDetailPage() {
|
|||
|
||||
// og:image must be an absolute URL. Fall back to the site social card when the
|
||||
// event has no cover so shared links never render blank.
|
||||
const ogImage = event?.image || 'https://skate-spots.org/images/icon-1024.png';
|
||||
const ogImage = event?.image || 'https://skate-spots.org/images/og-card.png';
|
||||
|
||||
// Compose a punchy share description: date + location, then the blurb.
|
||||
const shareDescription = (() => {
|
||||
|
|
|
|||
|
|
@ -742,7 +742,7 @@ export default function SupportersPage() {
|
|||
description: t('seoUi.supportersDesc'),
|
||||
ogTitle: 'Supporters — SkateSpots',
|
||||
ogDescription: 'Built by skaters, funded by skaters. Back the map on Angor or zap it.',
|
||||
ogImage: 'https://skate-spots.org/images/icon-1024.png',
|
||||
ogImage: 'https://skate-spots.org/images/og-card.png',
|
||||
});
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Reference in a new issue