Feat: render merch CTA on article and home pages

Co-authored-by: Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-10 18:04:36 -07:00
parent 83e35774d1
commit a4a25ae92c

View File

@@ -1,5 +1,5 @@
import { SITE_URL } from "./constants.mjs"; import { SITE_URL } from "./constants.mjs";
import { footer, nav, shellHead } from "./templates.mjs"; import { footer, merch, nav, shellHead } from "./templates.mjs";
import { escapeHtml, escapeXml, fmtDate, renderAuthorInline, toISODate } from "./utils.mjs"; import { escapeHtml, escapeXml, fmtDate, renderAuthorInline, toISODate } from "./utils.mjs";
export const renderHome = (articles) => ` export const renderHome = (articles) => `
@@ -48,6 +48,8 @@ ${nav}
.join("")} .join("")}
</div> </div>
</section> </section>
${merch}
</main> </main>
${footer} ${footer}
`; `;
@@ -76,6 +78,8 @@ ${nav}
</div> </div>
</article> </article>
${merch}
<div class="mt-8"> <div class="mt-8">
<a href="/" class="inline-flex items-center gap-2 text-sm"> <a href="/" class="inline-flex items-center gap-2 text-sm">
<i data-lucide="arrow-left" class="h-4 w-4"></i> Back to Home <i data-lucide="arrow-left" class="h-4 w-4"></i> Back to Home
@@ -168,6 +172,8 @@ ${nav}
</form> </form>
</article> </article>
${merch}
<div class="mt-8"> <div class="mt-8">
<a href="/" class="inline-flex items-center gap-2 text-sm"> <a href="/" class="inline-flex items-center gap-2 text-sm">
<i data-lucide="arrow-left" class="h-4 w-4"></i> Back to Home <i data-lucide="arrow-left" class="h-4 w-4"></i> Back to Home