Skip to content

Opening external link from menu in new tab / window #229

@aquada

Description

@aquada

When using external: <URL> for external links from the menu is it possible to have the page open on new tab, as in the html target="_blank behaviour?

I currently use a render-link.html with <a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if or (strings.HasPrefix .Destination "http") (strings.HasPrefix .Destination "https") }} target="_blank"{{ end }} >{{ .Text | safeHTML }}</a> to setup the markdown to open in new tab.

Thanks for the the great theme

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions