|
|
@ -40,6 +40,9 @@
|
|
|
|
<ul class="nav nav-pills">
|
|
|
|
<ul class="nav nav-pills">
|
|
|
|
{{ $p := . }}
|
|
|
|
{{ $p := . }}
|
|
|
|
{{ $basePath := path.Clean (urls.Parse .Site.BaseURL).Path }}
|
|
|
|
{{ $basePath := path.Clean (urls.Parse .Site.BaseURL).Path }}
|
|
|
|
|
|
|
|
{{ if eq $basePath "/" }}
|
|
|
|
|
|
|
|
{{ $basePath = "" }}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
{{ range .Site.Menus.main }}
|
|
|
|
{{ range .Site.Menus.main }}
|
|
|
|
{{ $pagePath := strings.TrimPrefix $basePath $p.RelPermalink }}
|
|
|
|
{{ $pagePath := strings.TrimPrefix $basePath $p.RelPermalink }}
|
|
|
|
{{ $menuPath := strings.TrimPrefix $basePath .URL }}
|
|
|
|
{{ $menuPath := strings.TrimPrefix $basePath .URL }}
|
|
|
|