From b7400a0c910482d649b03a566f0f64a6eceeac79 Mon Sep 17 00:00:00 2001 From: Sankhadeep Dutta Date: Mon, 4 Nov 2024 16:51:44 +0530 Subject: [PATCH] Revert "chore: update page count index" This reverts commit 4f55ff44d0562a7eeb17c800dddf0d07d4fe583e. --- layouts/partials/default.html | 2 +- themes/godocs-1/layouts/partials/default.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/default.html b/layouts/partials/default.html index f3c60468..9553ca10 100644 --- a/layouts/partials/default.html +++ b/layouts/partials/default.html @@ -8,7 +8,7 @@ {{range .Site.Home.Sections.ByWeight}} {{ $numberOfMainPages := len .Pages }} - {{ if eq $numberOfMainPages 0 }} + {{ if eq $numberOfMainPages -1 }} {{ else }} {{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode}} diff --git a/themes/godocs-1/layouts/partials/default.html b/themes/godocs-1/layouts/partials/default.html index f3c60468..9553ca10 100644 --- a/themes/godocs-1/layouts/partials/default.html +++ b/themes/godocs-1/layouts/partials/default.html @@ -8,7 +8,7 @@ {{range .Site.Home.Sections.ByWeight}} {{ $numberOfMainPages := len .Pages }} - {{ if eq $numberOfMainPages 0 }} + {{ if eq $numberOfMainPages -1 }} {{ else }} {{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode}}