This guide explains how to integrate Hakanai Broadcast with your Grav-powered blog to automatically send newsletters based on your RSS feed.
Grav requires the Feed plugin to generate RSS feeds. Here's how to set it up:
Using the Admin Panel:
Or via command line:
bin/gpm install feed
In your Admin Panel, go to 'Plugins' > 'Feed' and ensure these settings:
enabled: true
limit: 10
description: 'My Blog Feed'
lang: en
length: 500
enable_json_feed: false
You can also configure it manually in user/plugins/feed.yaml.
Add these links to your theme's <head> section (usually in templates/partials/base.html.twig):
{% if config.plugins.feed.enabled %}
<link rel="alternate" type="application/atom+xml" title="Atom Feed" href="{{ base_url }}/atom.xml" />
<link rel="alternate" type="application/rss+xml" title="RSS Feed" href="{{ base_url }}/rss.xml" />
{% endif %}
Your RSS feed will be available at /rss.xml.
For additional feed configuration options, refer to the Grav Feed Plugin documentation.
Once your RSS feed is set up, you can integrate it with Hakanai Broadcast in two steps:
https://yourblog.com/rss.xml)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.
Astro
Step-by-step tutorial to integrate a newsletter into your Astro blog using RSS feeds. Learn how to automatically send newsletters from your Astro content with Hakanai Broadcast.
Docusaurus
Complete guide to integrate a newsletter into your Docusaurus site using RSS feeds. Learn how to automatically send newsletters from your Docusaurus content with Hakanai Broadcast.