This guide explains how to integrate Hakanai Broadcast with your Astro-powered blog to automatically send newsletters based on your RSS feed.
Before integrating with Hakanai Broadcast, you need to set up an RSS feed for your blog. Here's how to do it:
npm install @astro/rss
Create a new file at src/pages/rss.xml.js with the following content:
import rss from '@astro/rss';
export const GET(context) {
const blog = await getCollection('blog');
return rss({
title: 'Your Site Title',
description: 'Your site description',
site: context.site,
items: await pagesGlobToRssItems(
import.meta.glob('./blog/*.{md,mdx}'),
),
});
};
For additional RSS feed customization options, refer to the Astro RSS documentation.
Once your RSS feed is set up, you can integrate it with Hakanai Broadcast in two steps:
For detailed instructions on campaign creation and management, see our Campaign Management Guide.
To collect subscribers, you'll need to add a subscription form to your blog. Hakanai provides several options:
For form creation and customization instructions, check our Forms Documentation.
If you encounter any issues or need assistance, feel free to contact our support team
Blog Integrations
Learn how to integrate Hakanai Broadcast with your favorite blogging platform. Automatically send newsletters from your blog content using RSS feeds.
Grav
Complete guide to integrate a newsletter into your Grav blog using RSS feeds. Learn how to automatically send newsletters from your Grav content with Hakanai Broadcast.