Guides across the network (Marty 2026-11-17): each rebuilt program's evergreen Guides section linked from its /earn page and in a short block on the blog index (page 1); programs.js gets a guides URL for DLB, VBB, VAB, VAS, 5x, DH and PolHunter

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-17 08:42:37 -06:00
parent cbefb29863
commit 42b4e2edc0
3 changed files with 14 additions and 7 deletions
+5
View File
@@ -71,6 +71,11 @@ function renderIndex(page, tag) {
let h = head({ title, desc, path: p, nav: '/blog', noindex: !!tag, jsonld: [{ '@context': 'https://schema.org', '@type': 'Blog', name: 'Stack POL Blog', url: SITE + '/blog', description: desc, publisher: { '@type': 'Organization', name: 'Stack POL', url: SITE } }] });
h += '<section style="padding:40px 0 10px"><p class="kick">' + (tag ? 'Tag: ' + esc(tag) : 'The Stack POL blog') + '</p><h1>Earning POL across the network, <span style="color:var(--gold)">one stack at a time</span></h1><p class="lead">' + esc(desc) + '</p></section>';
h += slice.length ? '<div class="posts">' + slice.map(cardHtml).join('') + '</div>' : '<p class="lead">Nothing published yet. Check back soon.</p>';
if (!tag && page === 1) { // Guides across the network (2026-11-17): each program's own evergreen Guides section
const gs = require('./programs').PROGRAMS.filter(x => x.guides);
if (gs.length) h += '<div class="sec-head"><h2>Guides across the network</h2></div><p class="lead" style="max-width:72ch">How each program works, whether it is legit (the contract, the ledger and the split) and the FAQ, each on its own site: '
+ gs.map(x => '<a href="' + esc(x.guides) + '" target="_blank" rel="noopener">' + esc(x.n) + '</a>').join(', ') + '.</p>';
}
h += spot(ZONES.banner, ZONES.strip);
if (pages > 1) h += '<div class="pager">' + (page > 1 ? '<a href="/blog' + (page - 1 > 1 ? '/page/' + (page - 1) : '') + '">&larr; Newer</a>' : '<span></span>') + (page < pages ? '<a href="/blog/page/' + (page + 1) + '">Older &rarr;</a>' : '<span></span>') + '</div>';
return h + tail();