diff options
| author | Eltrac <hi@guhub.cn> | 2025-11-06 11:32:27 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-11-06 11:32:27 +0800 |
| commit | acdf5f71125448f93495225e5a1237f2074c32b0 (patch) | |
| tree | 03d2e69f806b8525d573f71f341c0e2e83fe2761 /layouts | |
| parent | aa269b3bc156bd3d8bb691eae89af2c56329aa95 (diff) | |
feat: slight adjustments to stats page 1. remove stats table title since the
page title is already clear 2. remove cards count (which is abandoned) and
featured posts count 3. format word count number
Former-commit-id: 9ab976ccf34aee89ea064ec79f8e4ac14133ff2a
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_partials/stats/stats-table.html | 8 | ||||
| -rw-r--r-- | layouts/stats.html | 1 |
2 files changed, 1 insertions, 8 deletions
diff --git a/layouts/_partials/stats/stats-table.html b/layouts/_partials/stats/stats-table.html index ed529533..e4a7e389 100644 --- a/layouts/_partials/stats/stats-table.html +++ b/layouts/_partials/stats/stats-table.html @@ -30,7 +30,7 @@ {{- range .Site.RegularPages -}} {{- $words = add $words .WordCount -}} {{- end -}} - {{ $words }} + {{ lang.FormatNumber 0 $words }} </span> </td> </tr> @@ -41,16 +41,10 @@ <td><span class="number-pill">{{ len .Site.Taxonomies.categories }}</span></td> </tr> <tr> - <td>卡片数量</td> - <td><span class="number-pill">{{ len (where .Site.RegularPages "Section" "cards") }}</span></td> <td>小说数量</td> <td><span class="number-pill">{{ len (where .Site.RegularPages "Section" "fictions") }}</span></td> - </tr> - <tr> <td>书评数量</td> <td><span class="number-pill">{{ len (where .Site.RegularPages "Section" "library") }}</span></td> - <td>精选文章数量</td> - <td><span class="number-pill">{{ len (where .Site.RegularPages ".Params.featured" true) }}</span></td> </tr> </tbody> </table> diff --git a/layouts/stats.html b/layouts/stats.html index 457d9e11..f02b620d 100644 --- a/layouts/stats.html +++ b/layouts/stats.html @@ -3,7 +3,6 @@ {{ partial "header" . }} <section> - <h2>站点统计</h2> {{ partial "stats/stats-table" . }} </section> |
