Views, guides, tech stuff, Cryptocurrencies and ICOs from the mind of Andreas Ahrens


Getting target="_blank" into ghost links

10th February 2016

While writing my [seeds.rb](" target="_blank) article I noticed that all links by default load in the same tab with no way of setting the target. A quick googling later, I found [a blog](" target="blank) that had had the solution. Simply add:

" target="_blank

to the end of each link. So instead of just writing:

[Amazing blog!](

you write

[Amazing blog!](" target="_blank)

since ghost automatically adds " at the beginning and end of each link. That means the above code will render as:

<a href="" target="_blank">Amazing blog!</a>

Pretty nifty trick!

View Comments