From a43039a9da8b48d176461cb96f4a65076212936f Mon Sep 17 00:00:00 2001 From: Trent Palmer Date: Sat, 1 Jun 2024 00:51:03 -0700 Subject: [PATCH] disable hugoblox because multiple themes in one repo --- rank_hugo_themes.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/rank_hugo_themes.py b/rank_hugo_themes.py index 07fa117..6cd20fa 100755 --- a/rank_hugo_themes.py +++ b/rank_hugo_themes.py @@ -108,14 +108,15 @@ def get_hugo_themes_list(): inventory-hugo-theme, alexa-portfolio, hugo-theme-ladder, hermit-V2 malformed themes.toml """ - if "alexa-portfolio" not in x and "hermit-V2" not in x: - # if "inventory-hugo-theme" not in x: - if x[0:10] == "gitlab.com" or x[0:10] == "github.com": - if x.lower() not in lower_case_themes_list: - if x[-1] == " " and "termishTheme" in x: - x = x[0:-1] - THEMESLIST.append(x) - lower_case_themes_list.append(x.lower()) + if "HugoBlox" not in x: + if "alexa-portfolio" not in x and "hermit-V2" not in x: + # if "inventory-hugo-theme" not in x: + if x[0:10] == "gitlab.com" or x[0:10] == "github.com": + if x.lower() not in lower_case_themes_list: + if x[-1] == " " and "termishTheme" in x: + x = x[0:-1] + THEMESLIST.append(x) + lower_case_themes_list.append(x.lower()) print(response.status_code, get_hugo_themes_list.__name__)