Skip to content

Commit

Permalink
🐛 Fix: total word count error in section
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Oct 10, 2023
1 parent 8611f00 commit 8bb2a35
Show file tree
Hide file tree
Showing 15 changed files with 93 additions and 53 deletions.
11 changes: 7 additions & 4 deletions i18n/de.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ other = "Tags"

[posts]
other = "Artikel"

[taxonomy.totalwordCount]
one = ""
other = ""
# === Taxonomy ===

# === Section ===
[section]
recentlyUpdated = "Zuletzt aktualisiert"

[section.totalWordCount]
one = ""
other = ""
# === Section ===

# === Pagination ===
Expand Down Expand Up @@ -122,6 +122,9 @@ encryptyAgain = ""
one = "Ein Wort"
other = "{{ .Count }} Wörter"

[single.fuzzywordcount]
other = "{{ .Count }} Wörter (ungefähr)"

[single.readingTime]
one = "Eine Minute"
other = "{{ .Count }} Minuten"
Expand Down
10 changes: 7 additions & 3 deletions i18n/en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,15 @@ other = "Tags"
[posts]
other = "Posts"

[taxonomy.totalwordCount]
one = "Total one word"
other = "Total {{ .Count }} words"
# === Taxonomy ===

# === Section ===
[section]
recentlyUpdated = "Recently Updated"

[section.totalWordCount]
one = "Total one word"
other = "Total {{ .Count }} words"
# === Section ===

# === Pagination ===
Expand Down Expand Up @@ -119,6 +120,9 @@ encryptyAgain = "Encrypt again"
one = "One word"
other = "{{ .Count }} words"

[single.fuzzyWordCount]
other = "About {{ .Count }} words"

[single.readingTime]
one = "One minute"
other = "{{ .Count }} minutes"
Expand Down
11 changes: 7 additions & 4 deletions i18n/es.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ other = "Etiquetas"

[posts]
other = "Artículos"

[taxonomy.totalwordCount]
one = ""
other = ""
# === Taxonomy ===

# === Section ===
[section]
recentlyUpdated = "Actualizado recientemente"

[section.totalWordCount]
one = ""
other = ""
# === Section ===

# === Pagination ===
Expand Down Expand Up @@ -122,6 +122,9 @@ encryptyAgain = ""
one = "Una palabra"
other = "{{ .Count }} palabras"

[single.fuzzyWordCount]
other = "Aproximadamente {{ .Count }} palabras"

[single.readingTime]
one = "Un minuto"
other = "{{ .Count }} minutos"
Expand Down
11 changes: 7 additions & 4 deletions i18n/fr.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ other = "Tags"

[posts]
other = "Posts"

[taxonomy.totalwordCount]
one = "Nombre de mots: 1"
other = "Nombre de mots: {{ .Count }}"
# === Taxonomy ===

# === Section ===
[section]
recentlyUpdated = "Récemment Modifié"

[section.totalWordCount]
one = "Nombre de mots: 1"
other = "Nombre de mots: {{ .Count }}"
# === Section ===

# === Pagination ===
Expand Down Expand Up @@ -121,6 +121,9 @@ encryptyAgain = "Chiffrer à nouveau"
one = "1 mot"
other = "{{ .Count }} mots"

[single.fuzzyWordCount]
other = "environ {{ .Count }} mots"

[single.readingTime]
one = "1 minute"
other = "{{ .Count }} minutes"
Expand Down
11 changes: 7 additions & 4 deletions i18n/it.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ other = "Etichette"

[posts]
other = "Articoli"

[taxonomy.totalwordCount]
one = ""
other = ""
# === Taxonomy ===

# === Section ===
[section]
recentlyUpdated = "Aggiornati di recente"

[section.totalWordCount]
one = ""
other = ""
# === Section ===

# === Pagination ===
Expand Down Expand Up @@ -122,6 +122,9 @@ encryptyAgain = ""
one = "Una parola"
other = "{{ .Count }} parole"

[single.fuzzyWordCount]
other = "circa {{ .Count }} parole"

[single.readingTime]
one = "Un minuto"
other = "{{ .Count }} minuti"
Expand Down
11 changes: 7 additions & 4 deletions i18n/pl.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ other = "Tagi"

[posts]
other = "Posty"

[taxonomy.totalwordCount]
one = ""
other = ""
# === Taxonomy ===

# === Section ===
[section]
recentlyUpdated = "Ostatnio zaktualizowane"

[section.totalWordCount]
one = ""
other = ""
# === Section ===

# === Pagination ===
Expand Down Expand Up @@ -121,6 +121,9 @@ encryptyAgain = ""
one = "Jedno słowo"
other = "{{ .Count }} słów"

[single.fuzzyWordCount]
other = "Około {{ .Count }} słów"

[single.readingTime]
one = "Jedna minuta"
other = "{{ .Count }} minuty"
Expand Down
11 changes: 7 additions & 4 deletions i18n/pt-BR.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ other = "Tags"

[posts]
other = "Posts"

[taxonomy.totalwordCount]
one = ""
other = ""
# === Taxonomy ===

# === Section ===
[section]
recentlyUpdated = "Recentemente atualizado"

[section.totalWordCount]
one = ""
other = ""
# === Section ===

# === Pagination ===
Expand Down Expand Up @@ -122,6 +122,9 @@ encryptyAgain = ""
one = "Uma palavra"
other = "{{ .Count }} palavras"

[single.fuzzyWordCount]
other = ""

[single.readingTime]
one = "Um minuto"
other = "{{ .Count }} minutos"
Expand Down
11 changes: 7 additions & 4 deletions i18n/ro.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ other = "Etichete"

[posts]
other = "Articole"

[taxonomy.totalwordCount]
one = ""
other = ""
# === Taxonomy ===

# === Section ===
[section]
recentlyUpdated = "Actualizat recent"

[section.totalWordCount]
one = ""
other = ""
# === Section ===

# === Pagination ===
Expand Down Expand Up @@ -122,6 +122,9 @@ encryptyAgain = ""
one = "Un cuvânt"
other = "{{ .Count }} cuvinte"

[single.fuzzyWordCount]
other = "Aproximativ {{ .Count }} cuvinte"

[single.readingTime]
one = "Un minut"
other = "{{ .Count }} minute"
Expand Down
11 changes: 7 additions & 4 deletions i18n/ru.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ other = "Тэги"

[posts]
other = "Статьи"

[taxonomy.totalwordCount]
one = ""
other = ""
# === Taxonomy ===

# === Section ===
[section]
recentlyUpdated = "Недавно обновленные"

[section.totalWordCount]
one = ""
other = ""
# === Section ===

# === Pagination ===
Expand Down Expand Up @@ -122,6 +122,9 @@ encryptyAgain = ""
one = "Одно слово"
other = "{{ .Count }} слов"

[single.fuzzyWordCount]
other = "Около {{ .Count }} слов"

[single.readingTime]
one = "Одна минута"
other = "{{ .Count }} минут"
Expand Down
11 changes: 7 additions & 4 deletions i18n/sr.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ other = "Тагови"

[posts]
other = "Постови"

[taxonomy.totalwordCount]
one = ""
other = ""
# === Taxonomy ===

# === Section ===
[section]
recentlyUpdated = "Недавно Ажурирано"

[section.totalWordCount]
one = ""
other = ""
# === Section ===

# === Pagination ===
Expand Down Expand Up @@ -121,6 +121,9 @@ encryptyAgain = ""
one = "Једна реч"
other = "{{ .Count }} речи"

[single.fuzzyWordCount]
other = "Око {{ .Count }} речи"

[single.readingTime]
one = "Један минут"
other = "{{ .Count }} минута"
Expand Down
11 changes: 7 additions & 4 deletions i18n/vi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ other = "Nhãn"

[posts]
other = "Bài viết"

[taxonomy.totalwordCount]
one = ""
other = ""
# === Taxonomy ===

# === Section ===
[section]
recentlyUpdated = "Mới nhất"

[section.totalWordCount]
one = ""
other = ""
# === Section ===

# === Pagination ===
Expand Down Expand Up @@ -121,6 +121,9 @@ encryptyAgain = ""
one = "One word"
other = "{{ .Count }} từ"

[single.fuzzyWordCount]
other = "Khoảng {{ .Count }} từ"

[single.readingTime]
one = "One minute"
other = "{{ .Count }} phút"
Expand Down
9 changes: 6 additions & 3 deletions i18n/zh-CN.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ other = "标签"

[posts]
other = "文章"

[taxonomy.totalwordCount]
other = "总计约 {{ .Count }} 字"
# === Taxonomy ===

# === Section ===
[section]
recentlyUpdated = "最近更新"

[section.totalWordCount]
other = "总计约 {{ .Count }} 字"
# === Section ===

# === Pagination ===
Expand Down Expand Up @@ -118,6 +118,9 @@ password = "密码"
encryptyAgain = "重新加密"

[single.wordCount]
other = "{{ .Count }} 字"

[single.fuzzyWordCount]
other = "约 {{ .Count }} 字"

[single.readingTime]
Expand Down
9 changes: 6 additions & 3 deletions i18n/zh-TW.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ other = "標籤"

[posts]
other = "文章"

[taxonomy.totalwordCount]
other = "總計約 {{ .Count }} 字"
# === Taxonomy ===

# === Section ===
[section]
recentlyUpdated = "最近更新"

[section.totalWordCount]
other = "總計約 {{ .Count }} 字"
# === Section ===

# === Pagination ===
Expand Down Expand Up @@ -118,6 +118,9 @@ password = "密碼"
encryptyAgain = "重新加密"

[single.wordCount]
other = "{{ .Count }} 字"

[single.fuzzyWordCount]
other = "約 {{ .Count }} 字"

[single.readingTime]
Expand Down
4 changes: 2 additions & 2 deletions layouts/_default/section.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ <h1 class="single-title animate__animated animate__pulse animate__faster">
{{- if ge $humanizedNum 1000 -}}
{{- $humanizedNum = printf "%.2fK" (div $humanizedNum 1000.0) -}}
{{- end -}}
<p class="single-subtitle total-word-count" title='{{- T "taxonomy.totalwordCount" 1 }}'>
{{- dict "Class" "fa-regular fa-keyboard fa-fw" | partial "plugin/icon.html" }} {{ T "taxonomy.totalwordCount" (dict "Count" $humanizedNum) -}}
<p class="single-subtitle total-word-count" title='{{- T "section.totalWordCount" . }}'>
{{- dict "Class" "fa-regular fa-keyboard fa-fw" | partial "plugin/icon.html" }} {{ T "section.totalWordCount" (dict "Count" $humanizedNum) -}}
</p>
{{- end -}}
</div>
Expand Down
Loading

1 comment on commit 8bb2a35

@vercel
Copy link

@vercel vercel bot commented on 8bb2a35 Oct 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

fixit – ./

fixit-cell-x.vercel.app
fixit-git-master-cell-x.vercel.app
fixit.lruihao.cn
hugofixit.vercel.app

Please sign in to comment.