Compare commits

...

5 Commits

View File

@@ -103,20 +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:
""" """
inventory-hugo-theme, digio-theme, malformed themes.toml
alexa-portfolio, hugo-theme-ladder, hermit-V2 malformed themes.toml
""" """
if "HugoBlox" not in x: if "HugoBlox" not in x and "digio-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__)
@@ -637,6 +634,8 @@ def parse_themes_toml_for_each_hugo_themes():
theme.cname = None theme.cname = None
if theme_name == "apvarun/digital-garden-hugo-theme": if theme_name == "apvarun/digital-garden-hugo-theme":
theme.cname = "Digital Garden Hugo" theme.cname = "Digital Garden Hugo"
if theme_name == "guangzhengli/hugo-theme-ladder":
theme.cname = "Hugo Theme Ladder"
else: else:
if theme.tags_list is not None: if theme.tags_list is not None:
theme.tags_list = None theme.tags_list = None