feat(seo/geo): WebSite+SearchAction, HowTo, DefinedTermSet, TechArticle, 20+ AI crawlers

SEO structured data (layout.tsx):
- WebSite schema with potentialAction/SearchAction → enables sitelinks
  search box in Google results
- SoftwareApplication: added alternateName array, applicationSubCategory,
  isAccessibleForFree, availability, screenshot, aggregateRating, expanded
  featureList with specifics
- Organization: added logo, contactPoint
- HowTo schema (6 steps, estimatedCost $0, tools list) for "how to set up
  Trump Alpha auto-trader" — gets HowTo rich result + cited by AI assistants
- DefinedTermSet in root layout (AHR999, Pi Cycle, Talks-vs-Trades, Funding
  Reversal) — LLMs use this for entity definitions
- FAQPage: added 6 search-intent questions ("how do I auto trade trump tweets",
  "bot that trades based on Trump posts", "how to know if KOL is dumping",
  "best time to buy Bitcoin in bear market", "what is AHR999", "funding rate")
- All uses of siteUrl + today refactored to _base/_today constants

Per-page structured data:
- methodology/page.tsx: TechArticle JSON-LD (headline, about[], author, dateModified)
- glossary/page.tsx: DefinedTermSet with all terms + URL anchors per term;
  buildGlossaryJsonLd() generates one DefinedTerm per entry; canonical fixed
  to /en/ (was /${locale}/)

Missing metadata added:
- contact: metadata with robots noindex (no SEO value in contact form)
- privacy: metadata + canonical /en/privacy
- terms: metadata + canonical /en/terms

robots.ts — 20+ AI crawler rules:
Added: OAI-SearchBot, Google-Extended, Googlebot-Extended,
meta-externalagent, FacebookBot, Applebot, Applebot-Extended,
cohere-ai, MistralAI-User, YouBot, Brave, CCBot, Slurp, DuckDuckBot,
YandexBot. Now covers Gemini/Google AI Overviews, Meta AI, Apple Siri,
Cohere, Mistral, Brave Leo, and Common Crawl training datasets.

tsc + next build clean.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
k
2026-05-29 17:04:40 +08:00
parent be151edf6e
commit 3cf7de7144
7 changed files with 334 additions and 19 deletions
+32 -1
View File
@@ -384,7 +384,7 @@ export async function generateMetadata({
description: copy.ogDescription,
},
alternates: {
canonical: `${siteUrl}/${locale}/methodology`,
canonical: `${siteUrl}/en/methodology`,
languages: {
en: `${siteUrl}/en/methodology`,
'x-default': `${siteUrl}/en/methodology`,
@@ -393,6 +393,31 @@ export async function generateMetadata({
}
}
// TechArticle JSON-LD: tells Google (and AI crawlers) this is authoritative
// technical documentation, not marketing copy. Improves likelihood of being
// cited by Perplexity/ChatGPT when answering "how does X work" questions.
const methodologyJsonLd = {
'@context': 'https://schema.org',
'@type': 'TechArticle',
headline: 'Signal Methodology — How Each Engine Works',
description: 'Full technical documentation of all six Trump Alpha signal engines: Trump sentiment, BTC macro-bottom 2-of-3 confluence, KOL long-form extraction, talks-vs-trades divergence, funding rate reversal, and Hyperliquid auto-trader safety model.',
url: `${siteUrl}/en/methodology`,
datePublished: '2025-01-01',
dateModified: new Date().toISOString().slice(0, 10),
inLanguage: 'en',
author: { '@type': 'Organization', name: 'Trump Alpha', url: siteUrl },
publisher: { '@type': 'Organization', name: 'Trump Alpha', url: siteUrl },
about: [
{ '@type': 'Thing', name: 'Trump Truth Social crypto signals' },
{ '@type': 'Thing', name: 'Bitcoin macro bottom indicators' },
{ '@type': 'Thing', name: 'AHR999 indicator' },
{ '@type': 'Thing', name: 'Pi Cycle Bottom' },
{ '@type': 'Thing', name: 'KOL on-chain divergence' },
{ '@type': 'Thing', name: 'Hyperliquid perpetual trading' },
],
isPartOf: { '@type': 'WebSite', name: 'Trump Alpha', url: siteUrl },
}
const SECTION_STYLE = {
borderTop: '1px solid var(--line)',
paddingTop: 32,
@@ -438,6 +463,11 @@ export default async function MethodologyPage({ params }: { params: Promise<{ lo
const isZh = false // i18n shelved — Chinese branches kept as dead code for future revival; see messages/zh.json
return (
<>
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(methodologyJsonLd) }}
/>
<div className="page" style={{ maxWidth: 760 }}>
<div className="page-head">
<div>
@@ -490,5 +520,6 @@ export default async function MethodologyPage({ params }: { params: Promise<{ lo
</div>
</div>
</div>
</>
)
}