From f5f7a1c50c3c88777a1f5d91d9426f210cc26091 Mon Sep 17 00:00:00 2001 From: Vinta Chen Date: Sun, 16 Aug 2026 19:19:42 +0800 Subject: [PATCH] refactor: swap PyPI Downloads and GitHub Stars column order Downloads is now the default sort, so it sits directly after the project name in both the index and category table templates. The source-type badge stays in the stars cell. Co-Authored-By: Claude --- website/templates/category.html | 14 +++++++------- website/templates/index.html | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/website/templates/category.html b/website/templates/category.html index ab95552b..4077db61 100644 --- a/website/templates/category.html +++ b/website/templates/category.html @@ -117,12 +117,12 @@ - - - + + + @@ -153,16 +153,16 @@ else %}{{ category.name }}{% endif %} + + {% if entry.downloads is not none %}{{ + "{:,}".format(entry.downloads) }}{% else %}—{% endif %} + {% if entry.stars is not none %}{{ "{:,}".format(entry.stars) }}{% elif entry.source_type %}{{ entry.source_type }}{% else %}—{% endif %} - - {% if entry.downloads is not none %}{{ - "{:,}".format(entry.downloads) }}{% else %}—{% endif %} - - - - + + + @@ -204,16 +204,16 @@ else %}{{ entry.categories[0] }}{% endif %} + + {% if entry.downloads is not none %}{{ + "{:,}".format(entry.downloads) }}{% else %}—{% endif %} + {% if entry.stars is not none %}{{ "{:,}".format(entry.stars) }}{% elif entry.source_type %}{{ entry.source_type }}{% else %}—{% endif %} - - {% if entry.downloads is not none %}{{ - "{:,}".format(entry.downloads) }}{% else %}—{% endif %} -