disable hugoblox because multiple themes in one repo

This commit is contained in:
Trent Palmer 2024-06-01 00:51:03 -07:00
parent c92d2f876e
commit a43039a9da

View File

@ -108,14 +108,15 @@ def get_hugo_themes_list():
inventory-hugo-theme, inventory-hugo-theme,
alexa-portfolio, hugo-theme-ladder, hermit-V2 malformed themes.toml alexa-portfolio, hugo-theme-ladder, hermit-V2 malformed themes.toml
""" """
if "alexa-portfolio" not in x and "hermit-V2" not in x: if "HugoBlox" not in x:
# if "inventory-hugo-theme" not in x: if "alexa-portfolio" not in x and "hermit-V2" not in x:
if x[0:10] == "gitlab.com" or x[0:10] == "github.com": # if "inventory-hugo-theme" not in x:
if x.lower() not in lower_case_themes_list: if x[0:10] == "gitlab.com" or x[0:10] == "github.com":
if x[-1] == " " and "termishTheme" in x: if x.lower() not in lower_case_themes_list:
x = x[0:-1] if x[-1] == " " and "termishTheme" in x:
THEMESLIST.append(x) x = x[0:-1]
lower_case_themes_list.append(x.lower()) THEMESLIST.append(x)
lower_case_themes_list.append(x.lower())
print(response.status_code, get_hugo_themes_list.__name__) print(response.status_code, get_hugo_themes_list.__name__)