general category trip
This commit is contained in:
@@ -121,7 +121,7 @@ export default async function TripOgImage({
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Middle: title + mountain */}
|
||||
{/* Middle: title + destination */}
|
||||
<div style={{ display: "flex", flexDirection: "column", gap: 16 }}>
|
||||
<div
|
||||
style={{
|
||||
@@ -146,7 +146,7 @@ export default async function TripOgImage({
|
||||
>
|
||||
<span>📍</span>
|
||||
<span>
|
||||
{trip.mountain} · {trip.location}
|
||||
{trip.destination} · {trip.location}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -36,8 +36,8 @@ export async function generateMetadata({
|
||||
};
|
||||
}
|
||||
|
||||
const title = `${trip.title} — ${trip.mountain}`;
|
||||
const fallbackDescription = `Open trip ${trip.mountain} di ${trip.location}, ${formatTripCalendarDateRangeLong(trip.date, trip.endDate)}. Harga ${formatRupiah(trip.price)}/orang, max ${trip.maxParticipants} peserta. Gabung di ${siteConfig.name}.`;
|
||||
const title = `${trip.title} — ${trip.destination}`;
|
||||
const fallbackDescription = `Open trip ${trip.destination} di ${trip.location}, ${formatTripCalendarDateRangeLong(trip.date, trip.endDate)}. Harga ${formatRupiah(trip.price)}/orang, max ${trip.maxParticipants} peserta. Gabung di ${siteConfig.name}.`;
|
||||
const description =
|
||||
trip.description?.replace(/\s+/g, " ").trim().slice(0, 160) ||
|
||||
fallbackDescription;
|
||||
@@ -155,7 +155,7 @@ export default async function TripDetailPage({
|
||||
eventAttendanceMode: "https://schema.org/OfflineEventAttendanceMode",
|
||||
location: {
|
||||
"@type": "Place",
|
||||
name: trip.mountain,
|
||||
name: trip.destination,
|
||||
address: {
|
||||
"@type": "PostalAddress",
|
||||
addressLocality: trip.location,
|
||||
@@ -206,7 +206,7 @@ export default async function TripDetailPage({
|
||||
{
|
||||
"@type": "ListItem",
|
||||
position: 3,
|
||||
name: trip.mountain,
|
||||
name: trip.destination,
|
||||
item: tripUrl,
|
||||
},
|
||||
],
|
||||
@@ -226,7 +226,7 @@ export default async function TripDetailPage({
|
||||
Open Trip
|
||||
</Link>
|
||||
<span>/</span>
|
||||
<span className="truncate text-neutral-700">{trip.mountain}</span>
|
||||
<span className="truncate text-neutral-700">{trip.destination}</span>
|
||||
</div>
|
||||
|
||||
<div className="overflow-hidden rounded-2xl border border-neutral-200 bg-white shadow-sm">
|
||||
@@ -241,7 +241,7 @@ export default async function TripDetailPage({
|
||||
{trip.title}
|
||||
</h1>
|
||||
<p className="mt-0.5 flex items-center gap-1.5 text-sm text-neutral-500">
|
||||
🏔️ {trip.mountain}
|
||||
🏔️ {trip.destination}
|
||||
</p>
|
||||
</div>
|
||||
<span
|
||||
|
||||
Reference in New Issue
Block a user