From ac0f8dacefdc851be2a50913ea1cbb6d271ec1af Mon Sep 17 00:00:00 2001 From: Skywt2003 Date: Sun, 1 Aug 2021 19:09:08 +0800 Subject: [PATCH] Fix words counter --- archives.php | 2 +- footer.php | 2 +- functions.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/archives.php b/archives.php index 411e086..f36fc58 100644 --- a/archives.php +++ b/archives.php @@ -12,7 +12,7 @@ $this->need('header.php');

文章归档

- 共有 to($stat);?>publishedPostsNum() ?> 篇文章,allOfCharacters();?> 文字 + 共有 to($stat);?>publishedPostsNum() ?> 篇文章, 文字

widget('Widget_Contents_Post_Recent', 'pageSize=10000')->to($archives); diff --git a/footer.php b/footer.php index f6ccebc..84be071 100644 --- a/footer.php +++ b/footer.php @@ -23,7 +23,7 @@ Sitemap | Links

-

© options->title(); ?> ♥ to($stat); ?>publishedPostsNum() ?> Posts allOfCharacters();?> Words crafted

+

© options->title(); ?> ♥ to($stat); ?>publishedPostsNum() ?> Posts Words crafted

Powered by Typecho | Theme Sky by SkyWT

diff --git a/functions.php b/functions.php index 87985cb..279c0be 100644 --- a/functions.php +++ b/functions.php @@ -52,7 +52,7 @@ function allOfCharacters() { $unit = 'K'; } - $out = sprintf('%.2lf %s',$chars, $unit); + $out = sprintf('%.2lf%s',$chars, $unit); echo $out; } \ No newline at end of file