docker file change and bug fixes

rancherlabs/website-theme#7
This commit is contained in:
Westly Wright
2018-04-25 14:45:04 -07:00
parent 9ed3416fe6
commit 6feb12bf44
3 changed files with 27 additions and 28 deletions
+7 -5
View File
@@ -1,5 +1,5 @@
{{ .Scratch.Set "topLevel" . }}
{{ .Scratch.Set "secondLevel" . }}
{{ $.Scratch.Set "topLevel" . }}
{{ $.Scratch.Set "secondLevel" . }}
<nav>
<!-- tabs -->
@@ -10,9 +10,11 @@
<a href="{{ .URL }}" class="btn bg-link p-a-0">
<span class="p-h-xs">
{{ range .Site.Sections }}
{{ if .IsAncestor .CurrentSection }}
{{ .Scratch.Set "topLevel" . }}
{{ .Title }}
{{if $.CurrentSection}}
{{ if .IsAncestor $.CurrentSection }}
{{ $.Scratch.Set "topLevel" . }}
{{ .Title }}
{{end}}
{{end}}
{{end}}
</span>