Adding a Sign-Up Link to Your Hexo Blog with NexT Theme
1 Introduction
1.1 Why need it?
Recently I just started a newsletter on Substack.
I intended to include a sign-up link at the bottom of my blog post to allow people to sign up.
However, I couldn't find a relevant resource for adding a sign-up link to a Hexo blog using the NexT theme, so I'll share my attempt.
1.2 How to do it?
This post will provide a two-step guide on:
- Finding your Substack newsletter signup link.
- Adding the sign-up link at the bottom of your blog post using Hexo and NexT theme.
2 Find newsletter signup link on substack
There is an official support page about How to embed a signup form for my publication
There are the steps of finding the codes to embed a signup form:
Go to
Setting
and find your substack under thePublication
sectionGo to the
Setting
under your substack pageGo to the
Import
section, then you should get your signup link
After coming this far, I realized that the link was actually quite easy to find, even without going to the settings page. However, it's still a valuable learning experience to discover its location.
3 Add signup link to your post
The follwoing steps are only applicable to Hexo blog with NexT theme.
Open the
_config.yml
under the theme folder- My path is
Hexo/themes/next-reloaded/_config.yml
- My path is
Find the
Post Settings
header andfollow_me
part1
2
3
4
5
6
7
8
9
10
11
12
13# ---------------------------------------------------------------
# Post Settings
# See: https://theme-next.org/docs/theme-settings/posts
# ---------------------------------------------------------------
# Subscribe through Telegram Channel, Twitter, etc.
# Usage: `Key: permalink || icon` (Font Awesome)
follow_me:
#Twitter: https://twitter.com/username || fab fa-twitter
#Telegram: https://t.me/channel_name || fab fa-telegram
#WeChat: /images/wechat_channel.jpg || fab fa-weixin
#RSS: /atom.xml || fa fa-rssAdd a line about newsletter
1
2
3
4
5
6
7
8# Subscribe through Telegram Channel, Twitter, etc.
# Usage: `Key: permalink || icon` (Font Awesome)
follow_me:
#Twitter: https://twitter.com/username || fab fa-twitter
#Telegram: https://t.me/channel_name || fab fa-telegram
#WeChat: /images/wechat_channel.jpg || fab fa-weixin
#RSS: /atom.xml || fa fa-rss
Newsletter: https://tehya.substack.com || fa fa-envelope-open-textYou can see the result at the bottom of this post
3.1 Icon Options for Newsletter Link
At first, I was unfamiliar with terms like fa-rss
,
fa-twitter
, and so on. My assumption was that they
represented icons, so I attempted to add || fa fa-rss
after
my newsletter link, and it successfully appeared as an RSS icon.
After asking ChatGPT, it answered me like
The "fa fa-rss" part suggests that it might be related to Font Awesome, a popular icon font library.
Font Awesome provides a wide range of icons that can be easily incorporated into websites or applications. The "fa fa-rss" specifically refers to an icon representing an RSS feed. The "fa" prefix is used to indicate the Font Awesome library, and "fa-rss" refers to the specific RSS icon.
Sounds nice. Thank you, ChatGPT!
Therefore, I visited Font Awesome to find a more appealing icon for my newsletter. After selecting one, I copied its specific icon class name and pasted it after my newsletter link, following the steps outlined in step 3.
