mirror of
https://github.com/apophenia-news/apophenia.news.git
synced 2026-10-18 09:57:53 +00:00
Move unsubscribe form under newsletter URL
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user