From 4f55ff44d0562a7eeb17c800dddf0d07d4fe583e Mon Sep 17 00:00:00 2001 From: Sankhadeep Dutta Date: Mon, 4 Nov 2024 16:33:17 +0530 Subject: [PATCH] chore: update page count index --- 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 9553ca10..f3c60468 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 -1 }} + {{ if eq $numberOfMainPages 0 }} {{ 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 9553ca10..f3c60468 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 -1 }} + {{ if eq $numberOfMainPages 0 }} {{ else }} {{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode}}