mirror of
https://github.com/TrentSPalmer/hugo_themes_report.git
synced 2025-11-21 02:08:25 -08:00
Compare commits
3 Commits
43734d8621
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 4b5073d4d2 | |||
| 2809eca916 | |||
| 3854eef6b5 |
@@ -103,12 +103,11 @@ 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:
|
||||||
@@ -635,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
|
||||||
|
|||||||
Reference in New Issue
Block a user