diff options
| author | tdro <tdro@noreply.example.com> | 2025-02-03 00:00:00 +0000 |
|---|---|---|
| committer | tdro <tdro@noreply.example.com> | 2025-02-03 00:00:00 +0000 |
| commit | 53a91915e13a96ae26dea334e126a4d12895e605 (patch) | |
| tree | 4b613ea337a30ed560dac024485bd7d73e5e6c01 | |
| parent | 4cdff3f87825ea6cc7f5d14012ad99b20d5d7ea0 (diff) | |
| download | canory-53a91915e13a96ae26dea334e126a4d12895e605.tar.gz canory-53a91915e13a96ae26dea334e126a4d12895e605.tar.bz2 canory-53a91915e13a96ae26dea334e126a4d12895e605.zip | |
themes/default/layouts/partials/count-feeds: Count smarter
| -rw-r--r-- | themes/default/layouts/partials/count-feeds.html | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/themes/default/layouts/partials/count-feeds.html b/themes/default/layouts/partials/count-feeds.html index 68495da..c404c89 100644 --- a/themes/default/layouts/partials/count-feeds.html +++ b/themes/default/layouts/partials/count-feeds.html @@ -1,7 +1 @@ -{{- $author := .Section -}} - -{{- $feeds := where .Site.Pages "Params.feed" "ne" nil -}} -{{- $authors := where .Site.Pages "Section" $author -}} -{{- $filteredPages := $authors | intersect $feeds -}} - -{{- print (lang.FormatNumberCustom 0 (len $filteredPages)) -}} +{{- print (lang.FormatNumberCustom 0 (len .Pages)) -}} |
