From 0c1752413a2cf0a3061f1c8215484d2d9dac5f67 Mon Sep 17 00:00:00 2001 From: Trent Palmer Date: Thu, 26 Mar 2026 08:59:02 -0700 Subject: [PATCH] hardcode fix for two Clarity themes and correct commit sha --- rank_hugo_themes.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rank_hugo_themes.py b/rank_hugo_themes.py index 878572e..15abfc4 100755 --- a/rank_hugo_themes.py +++ b/rank_hugo_themes.py @@ -269,7 +269,8 @@ def get_commit_info_for_hugo_themes(): theme.commit_date_in_seconds = timegm( strptime(theme.commit_date, "%Y-%m-%dT%H:%M:%SZ") ) - theme.commit_sha = result["commit"]["tree"]["sha"] + # theme.commit_sha = result["commit"]["tree"]["sha"] + theme.commit_sha = result["sha"] session.commit() elif response.status_code == 403: print(response.status_code, get_commit_info_for_hugo_themes.__name__) @@ -636,6 +637,8 @@ def parse_themes_toml_for_each_hugo_themes(): theme.cname = "Digital Garden Hugo" if theme_name == "guangzhengli/hugo-theme-ladder": theme.cname = "Hugo Theme Ladder" + if theme_name == "chipzoller/hugo-clarity": + theme.cname = "Clarity (hugo-clarity)" if "frjo/hugo-theme-zen" in theme_name: theme.cname = "Hugo Theme Zen" else: