Closed guochengqian closed 5 years ago
Hugo has some options to control this - see hrefTargetBlank
in config.toml
. Hugo's documentation explains this and you can also search Hugo forums to learn more.
Hugo has some options to control this - see
hrefTargetBlank
inconfig.toml
. Hugo's documentation explains this and you can also search Hugo forums to learn more.
Thank you very much. I set hrefTargetBlank to true, and the source code of my website generated by hugo also seems correct. (Computer Science at <a target=_blank href=https://www.kaust.edu.sa/en>King Abdullah University of Science & Technology (KAUST)</a>.
)
However, when I click King Abdullah University of Science & Technology (KAUST)
in my website, the original tab will change with the new tab.
My orginal makedown is : Computer Science at <a target="_blank" href="https://www.kaust.edu.sa/en"> King Abdullah University of Science & Technology (KAUST)</a>
Having the same issue as @guochengqian. I have already set hrefTargetBlank = true
. Everything works fine on my localhost:1313 but on the published website (hosted by Netlify) it's error behavior: external site opened in original AND new tab.
Edit: Changing it to false didn't change any behavior either. Did I miss something?
I'm having the same problem. Did anyone figure this out?
I am having the same issue as well. Really appreciate any followup.
Academic does not generate links in content. This is handled by Hugo and its Markdown renderer, which is configured in config.toml
, (as well as possibly Blogdown if you are using RStudio). You can find more info in the docs and forums for those projects.
@seyounger @alvinntnu looks like the issue has been fixed in #1511
Hello.
Thanks very much for the hugo-academic theme. However, I find a common problem for my friend and me. When we click the link inside our website, the original website will change and new tab is open at the same time. For example, my website is
gcqian.com
, when I click the linkwww.google.com
inside my website,gcqian.com
will change towww.google.com
and a new tabwww.google.com
will open as well.We don't know how to solve this. Can you give us any hint?