Optimized language credentials

This commit is contained in:
Kevin Veen-Birkenbach 2025-01-15 02:08:49 +01:00
parent 9ff356ba70
commit 8ad3ca54cc
2 changed files with 23 additions and 18 deletions

View File

@ -1,12 +1,12 @@
---
accounts:
name: Accounts
name: Online Accounts
description: My Online Accounts
icon:
class: fa-solid fa-users
children:
- name: Publications
description: My Publications
- name: channels
description: My publication channels
icon:
class: fas fa-newspaper
children:
@ -252,7 +252,7 @@ company:
navigation:
header:
children:
- link: accounts.publications.children
- link: accounts.channels.children
- name: Contact
description: Get in touch
icon:
@ -485,7 +485,16 @@ navigation:
icon:
class: fa-solid fa-file-lines
url: https://s.veen.world/lebenslauf
- link: accounts
- name: Languages
icon:
class: fa-solid fa-language
children:
- link: accounts.duolingo
- name: Languages Credentials
description: Check out which languages I speak
url: https://s.veen.world/languages
icon:
class: fa-solid fa-language
- name: Credentials
description: Access my certifications, degrees, and professional records
icon:
@ -506,7 +515,7 @@ navigation:
icon:
class: fa-solid fa-scroll
url: https://s.veen.world/certifications
- link: accounts
- name: Imprint
description: Check out the imprint information
icon:

View File

@ -49,19 +49,15 @@ class ConfigurationResolver:
self._replace_in_list_by_list(value,item,loaded_link)
else:
self._replace_element_in_list(value,item,loaded_link)
else:
self._recursive_resolve(value, root_config)
elif key == "link":
try:
if self.__load_children(value):
loaded = self._find_entry(root_config, value.lower(), True)
if isinstance(loaded, list) and len(loaded) > 2:
loaded = self._find_entry(root_config, value.lower(), False)
self._replace_in_dict_by_dict(
current_config,key,loaded
)
else:
loaded = self._find_entry(root_config, value.lower(), True)
if isinstance(loaded, list) and len(loaded) > 2:
loaded = self._find_entry(root_config, value.lower(), False)
current_config.clear()
current_config.update(loaded)
current_config.clear()
current_config.update(loaded)
except Exception as e:
raise ValueError(
f"Error resolving link '{value}': {str(e)}. "