We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63b2945 commit 3937929Copy full SHA for 3937929
themes/influencer-hugo/layouts/partials/header.html
@@ -20,7 +20,11 @@ <h2 class="mb-0 text-color">{{ .Site.Title }}</h2>
20
<ul class="navbar-nav ml-auto mt-2 mt-lg-0">
21
{{ range .Site.Menus.main }}
22
<li class="nav-item">
23
- <a class="nav-link smoth-scroll" href="{{ $.Site.BaseURL }}{{ .URL }}">{{ .Name }}</a>
+ {{ if strings.HasPrefix .URL "http" }}
24
+ <a class="nav-link" href="{{ .URL }}" rel="noopener">{{ .Name }}</a>
25
+ {{ else }}
26
+ <a class="nav-link" href="{{ $.Site.BaseURL }}{{ .URL }}">{{ .Name }}</a>
27
+ {{ end }}
28
</li>
29
{{ end }}
30
</ul>
0 commit comments