Skip to content

Commit

Permalink
Revert "chore: update page count index"
Browse files Browse the repository at this point in the history
This reverts commit 4f55ff4.
  • Loading branch information
sankhadeepdutta committed Nov 4, 2024
1 parent 4f55ff4 commit b7400a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion layouts/partials/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{{range .Site.Home.Sections.ByWeight}}
<!-- not render any single page, like contact page. -->
{{ $numberOfMainPages := len .Pages }}
{{ if eq $numberOfMainPages 0 }}
{{ if eq $numberOfMainPages -1 }}
{{ else }}
<!-- /not render any single page, like contact page. -->
{{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode}}
Expand Down
2 changes: 1 addition & 1 deletion themes/godocs-1/layouts/partials/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{{range .Site.Home.Sections.ByWeight}}
<!-- not render any single page, like contact page. -->
{{ $numberOfMainPages := len .Pages }}
{{ if eq $numberOfMainPages 0 }}
{{ if eq $numberOfMainPages -1 }}
{{ else }}
<!-- /not render any single page, like contact page. -->
{{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode}}
Expand Down

0 comments on commit b7400a0

Please sign in to comment.