LordMathis / hugo-theme-nightfall

Minimal dark theme for Hugo
https://hugo-theme-nightfall.netlify.app/
MIT License
77 stars 41 forks source link

target="_blank" in social links on homepage #37

Closed pthoelken closed 4 months ago

pthoelken commented 5 months ago

Is there a way to configure it like the code markdown below?

[[params.social]]
key = 0
name = "github"
url = "https://github.com/gohugoio"
icon = "fa-brands fa-github"
newtabopen = true

So that means, that the visitor opens the link in a new tab instead of leaving the my homepage.

LordMathis commented 4 months ago

No it's not currently possible but it can be easily implemented. It could work similarly to how rel = "me" works currently. I'll welcome a PR, otherwise I will look at it over the weekend

pthoelken commented 4 months ago

I've already patch this. I'll do a MR today.