Skip to content

Commit c85af35

Browse files
committed
fix: various
1 parent 0271d2a commit c85af35

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

docs/templates/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ <h1><a href="{{ home_page }}">{{ _(trans["mod_list"]) }}</a></h1>
3939
<div class="breadcrumb">
4040
<a href="{{ home_page }}">👉 {{ _(trans["home"]) }}</a>
4141
{% if language %}
42-
<a href="{{ home_page }}/{{ language }}/">{{ language }}</a>
42+
<a href="{{ home_page }}{{ language }}/">{{ language }}</a>
4343
{% endif %}
4444
</div>

docs/templates/home_page.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ <h2 class="background">Some Stats</h2>
2727
<p><strong>{{ tp2_nb }}</strong></p>
2828
</div>
2929
<div>
30-
<p>Authors</p>
30+
<p>{{ _(trans["authors"]) }}</p>
3131
<p><strong>{{ authors_nb }}</strong></p>
3232
</div>
3333
<div>
34-
<p>Translators</p>
34+
<p>{{ _(trans["translators"]) }}</p>
3535
<p><strong>{{ team_nb }}</strong></p>
3636
</div>
3737
</div>

scripts/update_index.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ def build_html_page(**kwargs) -> str:
9292
if mod.tp2 not in ("n/a", "non-weidu", ""):
9393
tp2_nb += 1
9494

95-
last_added_mods = ModManager.get_last_added_mods(mods)
96-
last_updated_mods = ModManager.get_last_updated_mods(mods)
95+
last_added_mods = ModManager.get_last_added_mods(mods, nb=20)
96+
last_updated_mods = ModManager.get_last_updated_mods(mods, nb=20)
9797
without_author_mods = ModManager.get_without_author_mods(mods)
9898
without_tp2_mods = ModManager.get_without_tp2_mods(mods)
9999
missing_mods = ModManager.get_missing_mods(mods)
@@ -109,7 +109,7 @@ def build_html_page(**kwargs) -> str:
109109
categories={
110110
HomeCategory(id=1, value="Last Added Mods"): last_added_mods,
111111
HomeCategory(id=2, value="Last Updated Mods"): last_updated_mods,
112-
HomeCategory(id=3, value="Unknown Authors Mods"): sorted(
112+
HomeCategory(id=3, value="Unknown Author Mods"): sorted(
113113
without_author_mods, key=lambda x: x.name
114114
),
115115
HomeCategory(id=4, value="Unknown Tp2 Mods"): sorted(

0 commit comments

Comments
 (0)