If you know about the importance of SEO as well as the importance of adding a "nofollow" attribute to your outgoing links for your blog, then you probably noticed that Markdown Editors don't support adding attributes to links.

Not only that, the problem with this is that means whatever http links you type in GhostJS will default to "dofollow" links. That's not good for your website's SEO, especially when you to irrelevant websites; however, if you link out to relevant websites that support your content, you're better off using a "dofollow" instead.

If you came from Wordpress, you know that they give such an option (and if they don't, there's a plugin to toggle nofollow upon the creation of any href links).

It took me a while to figure out how to do this in GhostJS, but it has NOTHING to do with editing the code in your theme file; however, you do this through the editor.

What Is NoFollow and What Does It Do?

If you create a link with rel = "nofollow", what it does is it tells search engines like Google that the link should not impact the search engine optimization ranking of the target website.

In SEO lingo, this can be translated to saying that by adding "nofollow" to your links, your website will not be passing any "link juice" to the site that you are linking out to.

As you've probably guessed, dofollow links does the exact opposite of nofollow links. Dofollow links provide link juice so it will help the target website's SEO rank.

How to Add NoFollow Links in GhostJS Blog Posts?

Adding nofollow attribute to your outgoing links is actually easy! All you need to do is type the link as if you were creating it via HTML.

Let's say I wanted to make a nofollow link to my homepage. I would type the following in my blog post:

<a href = "https://www.eric-liang.com" target = "_blank" rel = "nofollow">Click Me To Go To My Homepage</a>

So as you can see, you basically type the anchor tag for the link you want instead of the usual Markdown anchor syntax nor the link itself in plain text.

Once you save the post, and inspect it via Google's Developer Tools, you should see the source code for your link to now contain the "nofollow" attribute value!