aa6ede051e
GEO (AI answer engines) — make the signal feeds and case studies machine-citeable: - Dataset JSON-LD on /trump, /kol, /trades (creator=Endorphin, publisher→#org, isAccessibleForFree, temporalCoverage). These are the "data/history/track record" entities Perplexity/Gemini/ChatGPT cite. - case-studies: ItemList of 5 Article nodes, each with headline/description/ articleBody/about + citation→evidence URL + author=Endorphin. ISO dates derived where parseable, omitted for vague labels. - public/llms-full.txt: single-doc full reference (methodology + glossary + case studies w/ sources inlined) for one-fetch AI ingestion; linked from llms.txt. SEO: - Breadcrumbs component (components/seo/Breadcrumbs.tsx) → BreadcrumbList JSON-LD on the 8 indexable content pages (trump/kol/macro/trades/analytics/ methodology/glossary/case-studies). - /archive split into server page + ArchivePageClient; server page sets robots noindex (legacy/test data — thin-content risk). - openGraph added to /trades and /analytics (previously meta+canonical only). Verified: tsc 0 errors, next build passes, runtime curl confirms all JSON-LD types render and llms-full.txt serves 200. No trading/API/component-logic changes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
36 lines
1.3 KiB
TypeScript
36 lines
1.3 KiB
TypeScript
import type { Metadata } from 'next'
|
|
import { getLocale } from 'next-intl/server'
|
|
import AnalyticsPageClient from './AnalyticsPageClient'
|
|
import Breadcrumbs from '@/components/seo/Breadcrumbs'
|
|
|
|
const siteUrl = process.env.NEXT_PUBLIC_SITE_URL || 'https://trumpsignal.com'
|
|
|
|
export async function generateMetadata(): Promise<Metadata> {
|
|
const locale = await getLocale()
|
|
const isZh = false // i18n shelved — Chinese branches kept as dead code for future revival; see messages/zh.json
|
|
const title = isZh ? '交易分析与表现' : 'Trading Analytics & Performance'
|
|
const description = isZh
|
|
? '查看胜率、最大回撤、平均持仓时间、信号准确率和历史交易表现,评估 Trump Alpha 的真实执行质量。'
|
|
: 'Review win rate, drawdown, average hold time, signal accuracy, and historical trade performance to evaluate live execution quality.'
|
|
return {
|
|
title,
|
|
description,
|
|
openGraph: { title, description },
|
|
alternates: {
|
|
canonical: `${siteUrl}/en/analytics`,
|
|
languages: {
|
|
en: `${siteUrl}/en/analytics`,
|
|
},
|
|
},
|
|
}
|
|
}
|
|
|
|
export default function AnalyticsPage() {
|
|
return (
|
|
<>
|
|
<Breadcrumbs items={[{ name: 'Analytics', path: '/en/analytics' }]} />
|
|
<AnalyticsPageClient />
|
|
</>
|
|
)
|
|
}
|