Skip to content

Open external link in new tab #193

Discussion options

You must be logged in to vote

Hi @kristhayer11, good question. This is something that changed with Hugo and we haven't yet integrated and documented for Quire.

It's explained in Hugo’s documentation at https://gohugo.io/getting-started/configuration-markup#markdown-render-hooks, but in short ....

In the layouts directory of your project, or in the layouts directory of your project's theme, you'll need to create a new directory called _default and then in that, another new directory called _markup and then in that, a new file called render-link.html with the following content:

<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@kristhayer11
Comment options

@mmpadilla15
Comment options

Answer selected by kristhayer11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants