Fix nil pointers and paginator errors

This commit is contained in:
Sebastiaan van Steenis
2018-04-24 16:39:46 -07: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 title: Rancher Server Tags
draft: true draft: true
layout: single-docs-left layout: single-docs
weight: 200 weight: 200
--- ---
+4 -4
View File
@@ -1,5 +1,5 @@
{{ $.Scratch.Set "topLevel" . }} {{ .Scratch.Set "topLevel" . }}
{{ $.Scratch.Set "secondLevel" . }} {{ .Scratch.Set "secondLevel" . }}
<nav> <nav>
<!-- tabs --> <!-- tabs -->
@@ -10,8 +10,8 @@
<a href="{{ .URL }}" class="btn bg-link p-a-0"> <a href="{{ .URL }}" class="btn bg-link p-a-0">
<span class="p-h-xs"> <span class="p-h-xs">
{{ range .Site.Sections }} {{ range .Site.Sections }}
{{ if .IsAncestor $.CurrentSection }} {{ if .IsAncestor .CurrentSection }}
{{ $.Scratch.Set "topLevel" . }} {{ .Scratch.Set "topLevel" . }}
{{ .Title }} {{ .Title }}
{{end}} {{end}}
{{end}} {{end}}