How to Add a Newsletter to Your Pelican Blog

This guide explains how to integrate Hakanai Broadcast with your Pelican-powered blog to automatically send newsletters based on your RSS feed.

Prerequisites

  • A Pelican blog
  • A Hakanai account
  • Basic knowledge of Python and pip

Setting up RSS Feed in Pelican

Pelican generates RSS feeds automatically. You just need to configure it properly in your pelicanconf.py file.

Configure Feed Settings

Add or update these settings in your pelicanconf.py:

# Feed generation is usually enabled by default
FEED_ALL_ATOM = 'feeds/all.atom.xml'
FEED_ALL_RSS = 'feeds/all.rss.xml'
CATEGORY_FEED_ATOM = 'feeds/{slug}.atom.xml'
CATEGORY_FEED_RSS = 'feeds/{slug}.rss.xml'
AUTHOR_FEED_ATOM = 'feeds/{slug}.atom.xml'
AUTHOR_FEED_RSS = 'feeds/{slug}.rss.xml'

Your main RSS feed will be available at /feeds/all.rss.xml by default.

For additional feed customization options, refer to the Pelican Feed Settings documentation.

Integrating with Hakanai Broadcast

Once your RSS feed is set up, you can integrate it with Hakanai Broadcast in two steps:

1. Create a Campaign

  1. Navigate to the Campaigns section in your Hakanai dashboard
  2. Create a new RSS-based campaign
  3. Enter your Pelican blog's RSS feed URL (typically https://yourblog.com/feeds/all.rss.xml)
  4. Configure your campaign settings

For detailed instructions on campaign creation and management, see our Campaign Management Guide.

2. Add a Subscription Form

To collect subscribers, you'll need to add a subscription form to your blog. Hakanai provides several options:

  • Use our pre-built forms
  • Create a custom form
  • Integrate with your existing forms

For form creation and customization instructions, check our Forms Documentation.

Next Steps

Need Help?

If you encounter any issues or need assistance, feel free to contact our support team.