be151edf6e
SEO fixes:
- canonical on trump/macro/kol pages now hardcodes /en/ instead of
/${locale}/ — prevents /zh/* routes (i18n shelved, routes still resolve)
from generating duplicate-content signals pointing to /zh/ canonicals
- OG image: "15 KOL feeds" → "19" (matches kol_substack.py KOL_FEEDS count)
- FAQ JSON-LD: corrected API key storage description ("stored encrypted in
your browser's local settings" was wrong — key is server-side encrypted,
not stored in the browser)
GEO (Generative Engine Optimization):
- llms.txt fully rewritten: +full KOL list (all 19 named), +explicit
differentiation section, +who-this-is-for, +technology stack detail
(model names, price sources, DB), +Hyperliquid and isolated-margin
definitions. AI crawlers (Perplexity, ChatGPT, Claude) use this file
directly when answering questions about the product.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
61 lines
2.2 KiB
TypeScript
61 lines
2.2 KiB
TypeScript
import { getPosts } from '@/lib/api'
|
|
import type { Metadata } from 'next'
|
|
import TrumpPageClient from './TrumpPageClient'
|
|
|
|
const siteUrl = process.env.NEXT_PUBLIC_SITE_URL || 'https://trumpsignal.com'
|
|
export const revalidate = 30
|
|
|
|
interface TrumpPageProps {
|
|
params: Promise<{ locale: string }>
|
|
}
|
|
|
|
export async function generateMetadata({
|
|
params,
|
|
}: TrumpPageProps): Promise<Metadata> {
|
|
const { locale } = await params
|
|
const isZh = false // i18n shelved — Chinese branches kept as dead code for future revival; see messages/zh.json
|
|
|
|
return {
|
|
title: isZh ? 'Trump Truth Social 实时信号' : 'Trump Truth Social Signals',
|
|
description: isZh
|
|
? '实时抓取并打分 Donald Trump 的 Truth Social 帖子,3 秒内判断是 LONG、SHORT 还是噪音,并可选择在 Hyperliquid 上以逐仓模式自动执行。'
|
|
: 'Real-time AI scoring of every Trump Truth Social post. Classified as LONG, SHORT, or NOISE within 3 seconds. Optional auto-trade on Hyperliquid with isolated margin.',
|
|
keywords: isZh
|
|
? [
|
|
'Trump 加密信号',
|
|
'Truth Social 交易信号',
|
|
'特朗普发帖行情',
|
|
'Trump 自动交易',
|
|
'Hyperliquid 机器人',
|
|
'Trump 加密信号',
|
|
]
|
|
: [
|
|
'Trump crypto signal',
|
|
'Truth Social crypto',
|
|
'Trump Truth Social trading bot',
|
|
'Trump market signal',
|
|
'crypto auto-trader',
|
|
'Hyperliquid bot',
|
|
],
|
|
openGraph: {
|
|
title: isZh ? 'Trump Truth Social 实时信号 | Trump Alpha' : 'Trump Truth Social Signals | Trump Alpha',
|
|
description: isZh
|
|
? '每条 Trump 帖子都在 3 秒内完成 AI 分类,输出方向、信心分和是否可执行,并支持 Hyperliquid 自动交易。'
|
|
: 'Every Trump post scored by AI in under 3 seconds. LONG, SHORT, or NOISE — with optional Hyperliquid auto-trade.',
|
|
},
|
|
alternates: {
|
|
canonical: `${siteUrl}/en/trump`,
|
|
languages: {
|
|
en: `${siteUrl}/en/trump`,
|
|
'x-default': `${siteUrl}/en/trump`,
|
|
},
|
|
},
|
|
}
|
|
}
|
|
|
|
export default async function TrumpPage() {
|
|
const posts = await getPosts(500, 1).catch(() => null)
|
|
|
|
return <TrumpPageClient initialPosts={posts} />
|
|
}
|