mirror of https://github.com/onweru/compose.git

weru
06.28.2020 2d7ab2bbc6a315838de02815d747640e0de51b18
update
1 files modified
8 ■■■■■ changed files
layouts/partials/nav.html 8 ●●●●● patch | view | raw | blame | history
layouts/partials/nav.html
@@ -22,9 +22,11 @@
            {{- with .Page }}
            {{- $active = or $active ( $.IsDescendant .)  }}
            {{- end }}
            {{- $url := urls.Parse .URL }}
            {{- $baseurl := $.Site.BaseURL }}
            <a class="nav-link{{if $active }} active{{end}}" href="{{ with .Page }}{{ $baseurl }}{{ .Permalink }}{{ else }}{{ $baseurl }}{{ .URL }}{{ end }}"><span{{if $active }} class="active"{{end}}>{{ .Name }}</span></a>
            {{- $url := absURL .URL }}
            {{- if or (hasPrefix .URL "http") (hasPrefix .URL "www.") }}
                {{- $url = .URL }}
            {{- end }}
            <a class="nav-link{{if $active }} active{{end}}" href="{{ $url }}"><span{{if $active }} class="active"{{end}}>{{ .Name }}</span></a>
        </li>
        {{- end }}
        {{ $repo := .Site.Params.source }}