Skip to content

Commit

Permalink
Merge pull request #60 from itsjoeoui/patch-3
Browse files Browse the repository at this point in the history
Open external links in new window
  • Loading branch information
lxndrblz authored Aug 24, 2020
2 parents e298aae + 525352c commit e50fc74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{{ $url := .RelPermalink }}
{{ range .Site.Menus.main }}
{{ $active := eq $url .URL }}
<li><a {{if $active }}class="current"{{end}} href="{{ .URL }}" title="{{ .Title }}">{{ .Name }}</a></li>
<li><a {{if $active }}class="current"{{end}} href="{{ .URL }}" {{ if strings.HasPrefix .URL "http" }}target="_blank" rel="noopener noreferrer" {{ end }} title="{{ .Title }}">{{ .Name }}</a></li>
{{ end }}
{{ if .Site.IsMultiLingual }}
{{ range $.Site.Home.AllTranslations }}
Expand Down

0 comments on commit e50fc74

Please sign in to comment.