mirror of
https://github.com/apophenia-news/apophenia.news.git
synced 2026-10-19 18:34:51 +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, "index.html"], renderHome(listedArticles));
|
||||||
await writePage([SRC, "write", "index.html"], renderWritePage());
|
await writePage([SRC, "write", "index.html"], renderWritePage());
|
||||||
await writePage([SRC, "newsletter", "index.html"], renderNewsletterPage());
|
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) {
|
for (const author of AUTHOR_PAGES) {
|
||||||
await writePage([SRC, "author", author.slug, "index.html"], renderAuthorPage(author));
|
await writePage([SRC, "author", author.slug, "index.html"], renderAuthorPage(author));
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ ${nav}
|
|||||||
<span x-text="error"></span>
|
<span x-text="error"></span>
|
||||||
</p>
|
</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>
|
</form>
|
||||||
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
|
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
|
||||||
</article>
|
</article>
|
||||||
@@ -200,14 +200,14 @@ export const renderUnsubscribePage = () => `
|
|||||||
${shellHead({
|
${shellHead({
|
||||||
title: "Unsubscribe — apophenia.news",
|
title: "Unsubscribe — apophenia.news",
|
||||||
desc: "Unsubscribe from the apophenia.news newsletter.",
|
desc: "Unsubscribe from the apophenia.news newsletter.",
|
||||||
url: `${SITE_URL}/unsubscribe/`
|
url: `${SITE_URL}/newsletter/unsubscribe`
|
||||||
})}
|
})}
|
||||||
${nav}
|
${nav}
|
||||||
<main class="shell py-10">
|
<main class="shell py-10">
|
||||||
<section class="card max-w-md mx-auto p-6 sm:p-8">
|
<section class="card max-w-md mx-auto p-6 sm:p-8">
|
||||||
<h1 class="text-3xl font-bold">Unsubscribe</h1>
|
<h1 class="text-3xl font-bold">Unsubscribe</h1>
|
||||||
<p class="mt-3 text-zinc-600">Enter your email to stop receiving our newsletter.</p>
|
<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: '',
|
email: '', loading: false, ok: false, error: '',
|
||||||
async submit() {
|
async submit() {
|
||||||
if (this.loading) return;
|
if (this.loading) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user