This guide explains how to integrate Hakanai Broadcast with your Hexo-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. We recommend using the hexo-feed plugin for its comprehensive features including support for tags and categories.
npm install hexo-feed --save-dev
Add the following configuration to your _config.yml:
feed:
limit: 20
order_by: "-date"
tag_dir: "tag"
category_dir: "category"
rss:
enable: true
template: "themes/theme/layout/_alternate/rss.ejs"
output: "rss.xml"
atom:
enable: true
template: "themes/theme/layout/_alternate/atom.ejs"
output: "atom.xml"
jsonFeed:
enable: true
template: "themes/theme/layout/_alternate/json.ejs"
output: "feed.json"
Add these links to your theme's layout file:
<link rel="alternate" type="application/rss+xml" title="<%= config.title %>" href="<%= full_url_for(`/rss.xml}`) %>">
<link rel="alternate" type="application/atom+xml" title="<%= config.title %>" href="<%= full_url_for(`/atom.xml`) %>">
<link rel="alternate" type="application/json" title="<%= config.title %>" href="<%= full_url_for(`/feed.json`) %>">
Note: You can also use hexo-generator-feed as an alternative plugin if you prefer a simpler setup.
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.
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.
HubPress
Complete guide to integrate a newsletter into your HubPress blog using RSS feeds. Learn how to automatically send newsletters from your HubPress content with Hakanai Broadcast.