Ledger shows each payout's username (Marty 2026-11-09), linked only when the member has a Stack POL page; LinkSpin zone spots on the blog index, posts and ledger (one zone per screen size, the hidden size never loads)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-09 14:32:34 -06:00
parent ad546660b9
commit e53565051b
6 changed files with 27 additions and 19 deletions
+3 -2
View File
@@ -5,7 +5,7 @@
'use strict';
const fs = require('fs');
const path = require('path');
const { SITE, esc, head, tail } = require('./layout');
const { SITE, esc, head, tail, ZONES, spot } = require('./layout');
const AUTHOR = 'Marty Bostick';
const PER_PAGE = 9;
const DIR = path.join(__dirname, 'content', 'blog');
@@ -71,6 +71,7 @@ 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>';
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();
}
@@ -90,7 +91,7 @@ function renderPost(p) {
if (p.cover) h += '<img class="cover" src="' + esc(p.cover) + '" alt="' + esc(p.coverAlt) + '" width="1200" height="630">';
h += '<article>' + p.body;
if (p.faq.length) h += '<h2>Questions people ask</h2>' + p.faq.map(q => '<h3>' + esc(q.q) + '</h3><p>' + esc(q.a) + '</p>').join('');
h += '</article>';
h += '</article>' + spot(ZONES.blogBox, ZONES.blogBox);
if (p.tags.length) h += '<p class="tags" style="margin-top:22px">' + p.tags.map(t => '<a href="/blog/tag/' + encodeURIComponent(t) + '">' + esc(t) + '</a>').join('') + '</p>';
h += '<p class="share" style="margin-top:18px"><a href="https://x.com/intent/tweet?url=' + encodeURIComponent(url) + '&text=' + encodeURIComponent(p.title) + '" target="_blank" rel="noopener">Share on X</a><a href="https://www.facebook.com/sharer/sharer.php?u=' + encodeURIComponent(url) + '" target="_blank" rel="noopener">Share on Facebook</a><a href="https://t.me/share/url?url=' + encodeURIComponent(url) + '&text=' + encodeURIComponent(p.title) + '" target="_blank" rel="noopener">Telegram</a></p>';
h += '<div class="author"><span class="av">M</span><div><b>' + AUTHOR + '</b><span>Founder of InstantAdPay, LinkSpin and the Crypto Team Build Network. Twenty-plus years of internet marketing, and a habit of writing down what actually worked.</span></div></div>';