mseri / mseri.github.io

Blog
0 stars 0 forks source link

a-great-workaround-for-targeting-links-in-ghost/ #15

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

A great workaround for targeting links in Ghost // A fractal spectrum of tales

Free thoughts of a geeky mathematician

https://www.mseri.me/a-great-workaround-for-targeting-links-in-ghost/

mseri commented 3 years ago

Original author: SaldyDog (SaldyDog)
Original date: 2013-10-29T16:15:44Z

Sweet, thanks! It's all about those quotation marks, isn't it!

mseri commented 3 years ago

Original author: Marcello Seri (mseri)
Original date: 2013-10-30T10:42:57Z

That's right,let's hope that they don't change this behavior in future releases!

mseri commented 3 years ago

Original author: micha42 (micha42)
Original date: 2013-11-30T15:37:33Z

Thanks for sharing! This is great!

mseri commented 3 years ago

Original author: Sung Won Cho (mike_cho)
Original date: 2014-10-16T00:10:17Z

Thank you, it works greatly.

mseri commented 3 years ago

Original author: Emmanuel Canaan (EmmanuelCanaan)
Original date: 2014-11-25T04:43:50Z

Thank you so much for this! I agree, I hope future updates don't break this.

mseri commented 3 years ago

Original author: hidrees (hidrees)
Original date: 2014-11-26T14:49:38Z

Alternatively, you can add a script to the index.js file of your Ghost theme to get all your links to open in a new tab: https://gist.github.com/hid...

mseri commented 3 years ago

Original author: Thiago Sá (thiagotts)
Original date: 2015-03-10T01:02:27Z

This answer on StackOverflow ( http://stackoverflow.com/a/... ) makes it really simple to open links that are outside your own site in new tabs. For instance, just add it inside a <script> tag in your default.hbm file. It works like a charm and won't break your links in case of future ghost updates. Besides, you can just keep using plain markdown to create the links.

mseri commented 3 years ago

Original author: miduga (miduga)
Original date: 2015-08-28T07:59:01Z

Easy way injecting a little javascript snippet on the footer of the page using Code Injection section. http://blog.hubii.com/targe...

mseri commented 3 years ago

Original author: Paul at Popcorn Metrics (PopcornMetrics)
Original date: 2015-09-08T10:38:01Z

Check here: https://ghost.org/forum/usi... even includes a nice script to AUTOMATE this for you. :)

mseri commented 3 years ago

Original author: Hadi
Original date: 2015-12-03T20:01:21Z

how's this a workaround? am I blind? I see no solution to target="_blank" issue

mseri commented 3 years ago

Original author: Marcello Seri (mseri)
Original date: 2015-12-03T20:18:29Z

Thanks for spotting this. While moving from ghost to static generation something must have gone wrong. You can still read the workaround here: http://web.archive.org/web/...

I will restore the original content asap.

mseri commented 3 years ago

Original author: Marcello Seri (mseri)
Original date: 2015-12-03T20:25:42Z

Old page is up again.

As an aside. I am no longer using ghost, can you please let me know if this trick is still working?

mseri commented 3 years ago

Original author: Cristian Muscalu (muscaiu)
Original date: 2017-04-24T11:04:27Z

Thanks! It's the second post i found with this solution. The 1-st one i didn't even try because this looked so weird! xD