Fix nil pointers and paginator errors

This commit is contained in:
Sebastiaan van Steenis
2018-04-25 01:02:15 +02:00
committed by Denise
parent bce6453fa3
commit f48598489c
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: Rancher Server Tags
draft: true
layout: single-docs-left
layout: single-docs
weight: 200
---
+4 -4
View File
@@ -1,5 +1,5 @@
{{ $.Scratch.Set "topLevel" . }}
{{ $.Scratch.Set "secondLevel" . }}
{{ .Scratch.Set "topLevel" . }}
{{ .Scratch.Set "secondLevel" . }}
<nav>
<!-- tabs -->
@@ -10,8 +10,8 @@
<a href="{{ .URL }}" class="btn bg-link p-a-0">
<span class="p-h-xs">
{{ range .Site.Sections }}
{{ if .IsAncestor $.CurrentSection }}
{{ $.Scratch.Set "topLevel" . }}
{{ if .IsAncestor .CurrentSection }}
{{ .Scratch.Set "topLevel" . }}
{{ .Title }}
{{end}}
{{end}}