fix Digital Garden cname conflict

This commit is contained in:
Trent Palmer 2023-03-17 00:00:07 -07:00
parent c310d64a56
commit 6b3bc3120e

View File

@ -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