mirror of
https://github.com/TrentSPalmer/hugo_themes_report.git
synced 2024-12-04 16:41:31 -08:00
fix Digital Garden cname conflict
This commit is contained in:
parent
c310d64a56
commit
6b3bc3120e
@ -539,7 +539,6 @@ def parse_themes_toml_for_each_hugo_themes():
|
|||||||
# (and add a newline afterwards)
|
# (and add a newline afterwards)
|
||||||
# because python toml libraries will error out on those
|
# because python toml libraries will error out on those
|
||||||
theme_name = get_corrected_theme_name(theme.name)
|
theme_name = get_corrected_theme_name(theme.name)
|
||||||
print(theme_name)
|
|
||||||
if theme_name in THEMESYAMLTHEMES:
|
if theme_name in THEMESYAMLTHEMES:
|
||||||
theme_toml = yaml.full_load(content)
|
theme_toml = yaml.full_load(content)
|
||||||
else:
|
else:
|
||||||
@ -622,6 +621,8 @@ def parse_themes_toml_for_each_hugo_themes():
|
|||||||
else:
|
else:
|
||||||
if theme.cname is not None:
|
if theme.cname is not None:
|
||||||
theme.cname = None
|
theme.cname = None
|
||||||
|
if theme_name == "apvarun/digital-garden-hugo-theme":
|
||||||
|
theme.cname = "Digital Garden Hugo"
|
||||||
else:
|
else:
|
||||||
if theme.tags_list is not None:
|
if theme.tags_list is not None:
|
||||||
theme.tags_list = None
|
theme.tags_list = None
|
||||||
|
Loading…
Reference in New Issue
Block a user