Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

How to add "target=_blank" for links in a post? #105

Open
PaulRBerg opened this issue May 14, 2020 · 8 comments
Open

How to add "target=_blank" for links in a post? #105

PaulRBerg opened this issue May 14, 2020 · 8 comments

Comments

@PaulRBerg
Copy link

Is this possible without a PR or a fork?

@aolingo
Copy link

aolingo commented May 14, 2020

You can always resort to inline HTML for links in your .md files.

<a href="http://example.com/" target="_blank">Hello, world!</a>

If you are doing it this way, depending on your markdown processors, you might have to make some additional changes to your config.toml file.

@Awan
Copy link

Awan commented May 22, 2020

I'm just working on that.

@PaulRBerg
Copy link
Author

Thanks @aolingo. The only issue with inline HTML is that I'd need to do massive refactor. Having the ability to set the target on all links via a layout file would be amazing.

@Awan
Copy link

Awan commented May 22, 2020

I have it working in blog posts but not in bar

@Awan
Copy link

Awan commented May 22, 2020

abdullah.today/blog/

@Awan
Copy link

Awan commented May 22, 2020 via email

@illupino
Copy link

illupino commented Jun 8, 2020

You can always resort to inline HTML for links in your .md files.

<a href="http://example.com/" target="_blank">Hello, world!</a>

If you are doing it this way, depending on your markdown processors, you might have to make some additional changes to your config.toml file.

That worked for me, with Goldmark and "unsafe" - THX!

@acim
Copy link

acim commented Feb 28, 2021

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants