Ghost Platform - Update links for nofollow and target blank

When using the Ghost platform, you will run into the issue of links being as they are: (a href="") (< and > changed to give you a sample.

What we want is:
href="" target="_blank" rel="nofollow"

Simply add this code to your header injection:

script src=''

Don't forget to add the < and > tags back.

Wrap this code in script tags:

$(document).ready(function() {
var excluded = [
// format for whitelist: '', '', ''
// add your excluded domains here
for(i=0; iif(this.href.indexOf(excluded) != -1) {
return true;
if(this.href.indexOf(location.hostname) == -1) {
$(this).click(function() { return true; });
target: "_blank",
rel: "nofollow"

And after that, click save and your links will now open in new windows and also receive a nofollow attribute.