Skip to content

Commit

Permalink
modified navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
tfsomrat committed Mar 11, 2020
1 parent 61e08d6 commit ad7e28a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<div class="collapse navbar-collapse text-center" id="navigation">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="{{ .Site.BaseURL | relLangURL }}">{{ .Site.Params.Home }}</a>
<a class="nav-link" href="{{ .Site.BaseURL | absLangURL }}">{{ .Site.Params.Home }}</a>
</li>
{{ range .Site.Menus.main }}
{{ if .HasChildren }}
Expand All @@ -48,13 +48,13 @@
</a>
<div class="dropdown-menu">
{{ range .Children }}
<a class="dropdown-item" href="{{ .URL | relLangURL }}">{{ .Name }}</a>
<a class="dropdown-item" href="{{ .URL | absLangURL }}">{{ .Name }}</a>
{{ end }}
</div>
</li>
{{ else }}
<li class="nav-item">
<a class="nav-link" href="{{ .URL | relLangURL }}">{{ .Name }}</a>
<a class="nav-link" href="{{ .URL | absLangURL }}">{{ .Name }}</a>
</li>
{{ end }}
{{ end }}
Expand Down

0 comments on commit ad7e28a

Please sign in to comment.