Repository navigation
PaperMod Subscribe: email subscriptions for PaperMod sites #1886
ayonkhan
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I made a theme component that adds email subscriptions to PaperMod sites hosted on Cloudflare Pages: PaperMod Subscribe.
It adds a subscription form under each post, in the spot PaperMod keeps for comments. If you already use Giscus or Disqus, the form goes above your comments. It uses PaperMod's own colours, so it follows light and dark mode.
Readers confirm their address by email, with Turnstile for spam protection, and get a welcome email with an unsubscribe link. Signups are stored in Resend, on its free plan.
To email subscribers when you publish, I also made Paperboy, a Cloudflare Worker that checks your RSS feed and creates a Resend broadcast for each new post.
I wrote about how it all works in Adding Email Subscriptions to My Hugo Blog.
Thanks for PaperMod. Feedback is welcome!
All reactions