Move unsubscribe form under newsletter URL

This commit is contained in:
2026-09-30 18:40:25 +00:00
parent 22a48da043
commit b47f0352bd
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ const run = async () => {
await writePage([SRC, "index.html"], renderHome(listedArticles));
await writePage([SRC, "write", "index.html"], renderWritePage());
await writePage([SRC, "newsletter", "index.html"], renderNewsletterPage());
await writePage([SRC, "unsubscribe", "index.html"], renderUnsubscribePage());
await writePage([SRC, "newsletter", "unsubscribe.html"], renderUnsubscribePage());
for (const author of AUTHOR_PAGES) {
await writePage([SRC, "author", author.slug, "index.html"], renderAuthorPage(author));
+3 -3
View File
@@ -180,7 +180,7 @@ ${nav}
<span x-text="error"></span>
</p>
<p class="mt-4 text-xs text-zinc-500"><a href="/unsubscribe/" class="underline">Unsubscribe</a> anytime. We never share your email.</p>
<p class="mt-4 text-xs text-zinc-500"><a href="/newsletter/unsubscribe" class="underline">Unsubscribe</a> anytime. We never share your email.</p>
</form>
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
</article>
@@ -200,14 +200,14 @@ export const renderUnsubscribePage = () => `
${shellHead({
title: "Unsubscribe — apophenia.news",
desc: "Unsubscribe from the apophenia.news newsletter.",
url: `${SITE_URL}/unsubscribe/`
url: `${SITE_URL}/newsletter/unsubscribe`
})}
${nav}
<main class="shell py-10">
<section class="card max-w-md mx-auto p-6 sm:p-8">
<h1 class="text-3xl font-bold">Unsubscribe</h1>
<p class="mt-3 text-zinc-600">Enter your email to stop receiving our newsletter.</p>
<form class="mt-6" x-data="{
<form class="mt-6" novalidate x-data="{
email: '', loading: false, ok: false, error: '',
async submit() {
if (this.loading) return;