mirror of
https://github.com/apophenia-news/apophenia.news.git
synced 2026-08-28 06:45:43 +00:00
Feat: render merch CTA on article and home pages
Co-authored-by: Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
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";
|
||||
|
||||
export const renderHome = (articles) => `
|
||||
@@ -48,6 +48,8 @@ ${nav}
|
||||
.join("")}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
${merch}
|
||||
</main>
|
||||
${footer}
|
||||
`;
|
||||
@@ -76,6 +78,8 @@ ${nav}
|
||||
</div>
|
||||
</article>
|
||||
|
||||
${merch}
|
||||
|
||||
<div class="mt-8">
|
||||
<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
|
||||
@@ -168,6 +172,8 @@ ${nav}
|
||||
</form>
|
||||
</article>
|
||||
|
||||
${merch}
|
||||
|
||||
<div class="mt-8">
|
||||
<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
|
||||
|
||||
Reference in New Issue
Block a user