This guide explains how to integrate Hakanai Broadcast with your Docusaurus site to automatically send newsletters based on your RSS feed.
Docusaurus generates an RSS feed by default. You just need to ensure your blog plugin is configured correctly:
Add or update the blog plugin configuration in your docusaurus.config.js:
module.exports = {
// Other configurations...
plugins: [
[
'@docusaurus/plugin-content-blog',
{
// other options
feedOptions: {
type: 'all',
title: 'Your Blog Title',
description: 'Your Blog Description',
copyright: `Copyright © ${new Date().getFullYear()} Your Name`,
language: 'en',
},
},
],
],
};
Your RSS feed will be available at /blog/rss.xml by default.
For additional RSS feed configuration options, refer to the Docusaurus 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:
If you want to create a custom form component, here's an example:
// src/components/SubscriptionForm.js
import React from 'react';
const SubscriptionForm = () => {
return (
<form action="YOUR_FORM_URL" method="POST">
<input type="email" name="email" placeholder="Enter your email" required />
<button type="submit">Subscribe</button>
</form>
);
};
export default SubscriptionForm;
Replace YOUR_FORM_URL with your form URL from the Hakanai dashboard.
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.
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.
Gatsby
Complete guide to integrate a newsletter into your Gatsby blog using RSS feeds. Learn how to automatically send newsletters from your Gatsby content with Hakanai Broadcast.