{{ partial "docs/title" . }}
@@ -8,7 +11,11 @@
{{ . }}
{{ end }}
- 共 {{ len (where .Pages "Params.bookHidden" "ne" true) }} 篇
+ {{ if $isContributors }}
+ 共 {{ len $contributors }} 位贡献者
+ {{ else }}
+ 共 {{ len (where .Pages "Params.bookHidden" "ne" true) }} 篇
+ {{ end }}
@@ -16,8 +23,7 @@
{{ partial "goclub-section-cards.html" . }}
- {{ if eq .File.Path "docs/contributors/_index.md" }}
- {{ $contributors := hugo.Data.contributors }}
+ {{ if $isContributors }}