hardcode fix for two Clarity themes and correct commit sha

This commit is contained in:
2026-03-26 08:59:02 -07:00
parent acdf32a762
commit 0c1752413a

View File

@@ -269,7 +269,8 @@ def get_commit_info_for_hugo_themes():
theme.commit_date_in_seconds = timegm( theme.commit_date_in_seconds = timegm(
strptime(theme.commit_date, "%Y-%m-%dT%H:%M:%SZ") 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() session.commit()
elif response.status_code == 403: elif response.status_code == 403:
print(response.status_code, get_commit_info_for_hugo_themes.__name__) 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" theme.cname = "Digital Garden Hugo"
if theme_name == "guangzhengli/hugo-theme-ladder": if theme_name == "guangzhengli/hugo-theme-ladder":
theme.cname = "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: if "frjo/hugo-theme-zen" in theme_name:
theme.cname = "Hugo Theme Zen" theme.cname = "Hugo Theme Zen"
else: else: