Compare commits

...

2 Commits

Author SHA1 Message Date
2809eca916 undo fix hugo-theme-ladder bad theme.toml 2025-11-14 03:36:29 -08:00
3854eef6b5 undo fix hermit-V2 bad theme.toml 2025-11-14 00:50:03 -08:00

View File

@@ -103,18 +103,17 @@ def get_hugo_themes_list():
if response.status_code == 200: if response.status_code == 200:
lower_case_themes_list = [] lower_case_themes_list = []
for x in response.text.splitlines(): for x in response.text.splitlines():
if "wowchemy-hugo-themes" not in x and "hugo-theme-ladder" not in x: if "wowchemy-hugo-themes" not in x:
""" """
digio-theme, hugo-theme-ladder, hermit-V2 malformed themes.toml digio-theme, malformed themes.toml
""" """
if "HugoBlox" not in x and "digio-theme" not in x: if "HugoBlox" not in x and "digio-theme" not in x:
if "hermit-V2" not in x: if x[0:10] == "gitlab.com" or x[0:10] == "github.com":
if x[0:10] == "gitlab.com" or x[0:10] == "github.com": if x.lower() not in lower_case_themes_list:
if x.lower() not in lower_case_themes_list: if x[-1] == " " and "termishTheme" in x:
if x[-1] == " " and "termishTheme" in x: x = x[0:-1]
x = x[0:-1] THEMESLIST.append(x)
THEMESLIST.append(x) lower_case_themes_list.append(x.lower())
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__)