Guides (Marty 2026-11-17): /guides index + How The Draft works, Is 5xYourTeam legit?, Coaching your picks, FAQ
Static pages in the site's look (legal card layout, FX nav/footer via misc.js data-page=guides), canonical + meta + OG, linked from the nav and footer, in the sitemap, 'guides' reserved from coach URLs. Every number checked against config.js defaults (no DRAFT_/PICK_/POT_ env overrides on the live app) and DraftPosition on chain (priceCents 1000, 2500/500/1000 bps, MAX_DEPTH 20, MAX_QTY 10, company + prize wallets). Chatbot: f-guides FAQ entry + GUIDES fact. qa/guides.test.cjs (59 checks) keeps the pages in step with config. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -132,8 +132,9 @@ function oldLink(u) {
|
||||
}
|
||||
|
||||
const PAGES = { '/': 'index.html', '/team': 'team.html', '/cards': 'cards.html', '/join': 'join.html', '/ledger': 'ledger.html', '/contract': 'contract.html', '/admin': 'admin.html',
|
||||
'/terms': 'terms.html', '/disclaimer': 'disclaimer.html', '/privacy': 'privacy.html', '/builder': 'builder.html' };
|
||||
const RESERVED = new Set(['api', 'assets', 'art', 'go', 'r', 'sso', 'health', 'promote', 'sitemap.xml', 'robots.txt', 'favicon.ico', 'index.php', 'team', 'cards', 'join', 'ledger', 'contract', 'admin', 'terms', 'disclaimer', 'privacy', 'builder', 'members', 'draft', 'board']);
|
||||
'/terms': 'terms.html', '/disclaimer': 'disclaimer.html', '/privacy': 'privacy.html', '/builder': 'builder.html',
|
||||
'/guides': 'guides.html', '/guides/how-the-draft-works': 'guides/how-the-draft-works.html', '/guides/is-5xyourteam-legit': 'guides/is-5xyourteam-legit.html', '/guides/coaching-your-picks': 'guides/coaching-your-picks.html', '/guides/faq': 'guides/faq.html' }; // Guides (Marty 2026-11-17)
|
||||
const RESERVED = new Set(['api', 'assets', 'art', 'go', 'r', 'sso', 'health', 'promote', 'sitemap.xml', 'robots.txt', 'favicon.ico', 'index.php', 'team', 'cards', 'join', 'ledger', 'contract', 'admin', 'terms', 'disclaimer', 'privacy', 'builder', 'members', 'draft', 'board', 'guides']);
|
||||
const challenges = new Map();
|
||||
// a join link to InstantAdPay or LinkSpin carries the way back here (2026-11-17, Marty: "it never had a return path back"): the
|
||||
// provider remembers ?return=<this site>&to=/my and, after the sign-up or sign-in (and the wallet step), sends the member back
|
||||
@@ -235,7 +236,7 @@ const server = http.createServer(async (req, res) => {
|
||||
if (/^\/r\/[^/]+$/.test(p)) { res.writeHead(302, { Location: '/' + encodeURIComponent(decodeURIComponent(p.slice(3))) }); return res.end(); }
|
||||
if (p === '/sitemap.xml') {
|
||||
const day = new Date().toISOString().slice(0, 10);
|
||||
const urls = ['/', '/join', '/cards', '/ledger', '/contract', '/promote', '/terms', '/disclaimer', '/privacy'].map(x => '<url><loc>https://' + C.site + x + '</loc><lastmod>' + day + '</lastmod></url>').join('');
|
||||
const urls = ['/', '/join', '/cards', '/ledger', '/contract', '/promote', '/guides', '/guides/how-the-draft-works', '/guides/is-5xyourteam-legit', '/guides/coaching-your-picks', '/guides/faq', '/terms', '/disclaimer', '/privacy'].map(x => '<url><loc>https://' + C.site + x + '</loc><lastmod>' + day + '</lastmod></url>').join('');
|
||||
res.writeHead(200, headers({ 'Content-Type': 'application/xml; charset=utf-8', 'Cache-Control': 'public, max-age=3600' }));
|
||||
return res.end('<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' + urls + '</urlset>');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user