Hexo is a fast and simple blog framework powered by Node.js. However, there is no built-in way to send newsletters to your subscribers.
In this guide, we'll show you how to add a newsletter to your Hexo blog using RssFeedPulse.
An RSS feed is a simple text file that contains your latest blog posts in XML format, allowing other websites and services to read your content.
If you're using Hexo, you can generate an RSS feed automatically using a plugin like:
To create an RSS feed in Hexo, you need to install a plugin. I recommend hexo-feed for its support of tags and categories:
npm install hexo-feed --save-dev
Then configure the plugin:
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 the following links to your layout:
<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`) %>">
To create a campaign in RssFeedPulse, you need to have an account. If you don't have one yet, you can create one here .
Once you have an account, create a new campaign by clicking on "New campaign" in the dashboard .
Enter the URL of your feed, such as `"https://yourblog.com/rss.xml"`.
To collect subscribers, create a form and add it to your blog. In RssFeedPulse, you can create your own form and customize it to match your blog's design.
Add this form to your blog to start collecting subscribers.