Skip to content

Commit

Permalink
chore: update page count index
Browse files Browse the repository at this point in the history
  • Loading branch information
sankhadeepdutta committed Nov 4, 2024
1 parent 7e8daa0 commit 4f55ff4
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 -1 }}
{{ if eq $numberOfMainPages 0 }}
{{ 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 -1 }}
{{ if eq $numberOfMainPages 0 }}
{{ else }}
<!-- /not render any single page, like contact page. -->
{{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode}}
Expand Down

0 comments on commit 4f55ff4

Please sign in to comment.