Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optionally make links open in a new browser tab? #97

Closed
metawops opened this issue Nov 17, 2019 · 2 comments
Closed

Optionally make links open in a new browser tab? #97

metawops opened this issue Nov 17, 2019 · 2 comments

Comments

@metawops
Copy link

How would I add a new boolean parameter for my config.toml file of my hugo blog that would switch between (all) links opening in a new browser tab (target="_blank") or in the same tab? 😳

@sandipb
Copy link

sandipb commented Dec 15, 2019

This is not pretty, and I am pretty sure the effect is not what you want.

But if you put this in /layouts/partials/header/custom.html, it will open every link in a new tab. Even the post title links! It works. I tried it.

<base target="_blank">

Ref: https://stackoverflow.com/a/24428525/390514

@htr3n
Copy link
Owner

htr3n commented Jan 2, 2020

@metawops Yeah, @sandipb is right, this is mostly about HTML than hyde-hyde specific. Just set the <base target...> and you are good to go.

@htr3n htr3n closed this as completed Jan 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants